namespace ET { public class UnitComponentAwakeSystem: AwakeSystem { public override void Awake(UnitComponent self) { } } public class UnitComponentDestroySystem: DestroySystem { public override void Destroy(UnitComponent self) { } } public static class UnitComponentSystem { public static Unit Get(this UnitComponent self, long id) { Unit unit = self.GetChild(id); return unit; } public static void Remove(this UnitComponent self, long id) { Unit unit = self.GetChild(id); unit?.Dispose(); } } }