GameObjectComponentSystem.cs 376 B

12345678910111213141516
  1. using System;
  2. namespace ET.Client
  3. {
  4. public static class GameObjectComponentSystem
  5. {
  6. [ObjectSystem]
  7. public class DestroySystem: DestroySystem<GameObjectComponent>
  8. {
  9. protected override void Destroy(GameObjectComponent self)
  10. {
  11. UnityEngine.Object.Destroy(self.GameObject);
  12. }
  13. }
  14. }
  15. }