You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
737 B
33 lines
737 B
namespace ET |
|
{ |
|
public class UnitComponentAwakeSystem: AwakeSystem<UnitComponent> |
|
{ |
|
public override void Awake(UnitComponent self) |
|
{ |
|
} |
|
} |
|
|
|
public class UnitComponentDestroySystem: DestroySystem<UnitComponent> |
|
{ |
|
public override void Destroy(UnitComponent self) |
|
{ |
|
} |
|
} |
|
|
|
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(); |
|
} |
|
} |
|
} |