UI.cs 488 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Base;
  2. using UnityEngine;
  3. using Component = Base.Component;
  4. namespace Model
  5. {
  6. public sealed class UI: Entity
  7. {
  8. public Entity Scene { get; set; }
  9. public UIType UIType { get; set; }
  10. public string Name { get; set; }
  11. public GameObject GameObject { get; set; }
  12. public override void Dispose()
  13. {
  14. if (this.Id == 0)
  15. {
  16. return;
  17. }
  18. base.Dispose();
  19. }
  20. public UI(): base(EntityType.UI)
  21. {
  22. }
  23. public UI(long id): base(id, EntityType.UI)
  24. {
  25. }
  26. }
  27. }