RobotComponent.cs 422 B

12345678910111213141516171819202122232425262728293031
  1. using Base;
  2. namespace Model
  3. {
  4. [DisposerEvent]
  5. public class RobotComponentEvent : DisposerEvent<RobotComponent>, IAwake
  6. {
  7. public void Awake()
  8. {
  9. RobotComponent component = this.GetValue();
  10. component.Awake();
  11. }
  12. }
  13. public class RobotComponent : Component
  14. {
  15. public void Awake()
  16. {
  17. }
  18. public override void Dispose()
  19. {
  20. if (this.Id == 0)
  21. {
  22. return;
  23. }
  24. base.Dispose();
  25. }
  26. }
  27. }