PlayerCommponentSystem.cs 496 B

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