GameObjectComponentSystem.cs 366 B

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