ModelViewComponentSystem.cs 689 B

12345678910111213141516171819202122232425
  1. 
  2. namespace ET.Client
  3. {
  4. [FriendOf(typeof(ModelViewComponent))]
  5. public static class ModelViewComponentSystem
  6. {
  7. [ObjectSystem]
  8. public class ModelViewComponentAwakeSystem : AwakeSystem<ModelViewComponent>
  9. {
  10. protected override void Awake(ModelViewComponent self)
  11. {
  12. ModelViewComponent.Instance = self;
  13. }
  14. }
  15. [ObjectSystem]
  16. public class ModelViewComponentDestroySystem : DestroySystem<ModelViewComponent>
  17. {
  18. protected override void Destroy(ModelViewComponent self)
  19. {
  20. ModelViewComponent.Instance = null;
  21. }
  22. }
  23. }
  24. }