123456789101112131415161718 |
- namespace ET
- {
- [FriendOfAttribute(typeof(ET.UnitComponent))]
- public static class UnitComponentSystem
- {
- public static Unit Get(this UnitComponent self, long id)
- {
- Unit unit = self.GetChild<Unit>(id);
- return unit;
- }
- public static void Remove(this UnitComponent self, long id)
- {
- Unit unit = self.GetChild<Unit>(id);
- unit?.Dispose();
- }
- }
- }
|