AppInfoComponent.cs 386 B

1234567891011121314151617181920212223
  1. using Base;
  2. namespace Model
  3. {
  4. [ObjectEvent]
  5. public class AppInfoComponentEvent : ObjectEvent<AppInfoComponent>, IAwake<string>
  6. {
  7. public void Awake(string appType)
  8. {
  9. this.GetValue().Awake(appType);
  10. }
  11. }
  12. public class AppInfoComponent : Component
  13. {
  14. private string AppType { get; set; }
  15. public void Awake(string appType)
  16. {
  17. this.AppType = appType;
  18. }
  19. }
  20. }