MailBoxComponentSystem.cs 495 B

1234567891011121314151617181920212223
  1. using System;
  2. using ETModel;
  3. namespace ETHotfix
  4. {
  5. [ObjectSystem]
  6. public class MailBoxComponentAwakeSystem : AwakeSystem<MailBoxComponent>
  7. {
  8. public override void Awake(MailBoxComponent self)
  9. {
  10. self.MailboxType = MailboxType.MessageDispatcher;
  11. }
  12. }
  13. [ObjectSystem]
  14. public class MailBoxComponentAwake1System : AwakeSystem<MailBoxComponent, MailboxType>
  15. {
  16. public override void Awake(MailBoxComponent self, MailboxType mailboxType)
  17. {
  18. self.MailboxType = mailboxType;
  19. }
  20. }
  21. }