Scene.cs 877 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. namespace ETModel
  2. {
  3. public sealed class Scene: Entity
  4. {
  5. public SceneType SceneType { get; set; }
  6. public string Name { get; set; }
  7. public new Entity Domain
  8. {
  9. get
  10. {
  11. return this.domain;
  12. }
  13. set
  14. {
  15. this.domain = value;
  16. }
  17. }
  18. public new Entity Parent
  19. {
  20. get
  21. {
  22. return this.parent;
  23. }
  24. set
  25. {
  26. this.parent = value;
  27. this.parent.Children.Add(this.Id, this);
  28. #if !SERVER
  29. if (this.ViewGO != null && this.parent.ViewGO != null)
  30. {
  31. this.ViewGO.transform.SetParent(this.parent.ViewGO.transform, false);
  32. }
  33. #endif
  34. }
  35. }
  36. }
  37. }