UI.cs 442 B

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