Scene.cs 608 B

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