PlayerCommponentSystem.cs 507 B

12345678910111213141516171819202122
  1. using ET.Client;
  2. namespace ET
  3. {
  4. [ObjectSystem]
  5. public class PlayerComponentAwakeSystem : AwakeSystem<PlayerComponent>
  6. {
  7. protected override void Awake(PlayerComponent self)
  8. {
  9. PlayerComponent.Instance = self;
  10. }
  11. }
  12. [ObjectSystem]
  13. public class PlayerComponentDestroySystem : DestroySystem<PlayerComponent>
  14. {
  15. protected override void Destroy(PlayerComponent self)
  16. {
  17. PlayerComponent.Instance = null;
  18. }
  19. }
  20. }