UnitSystem.cs 405 B

1234567891011121314151617181920
  1. namespace ET
  2. {
  3. [ObjectSystem]
  4. public class UnitSystem: AwakeSystem<Unit, int>
  5. {
  6. protected override void Awake(Unit self, int configId)
  7. {
  8. self.ConfigId = configId;
  9. }
  10. }
  11. [ObjectSystem]
  12. public class UnitDestroySystem : DestroySystem<Unit>
  13. {
  14. protected override void Destroy(Unit self)
  15. {
  16. //TODO:
  17. }
  18. }
  19. }