CurrentScenesComponent.cs 453 B

123456789101112131415161718192021
  1. namespace ET
  2. {
  3. // 可以用来管理多个客户端场景,比如大世界会加载多块场景
  4. [ComponentOf(typeof(Scene))]
  5. public class CurrentScenesComponent: Entity, IAwake
  6. {
  7. private EntityRef<Scene> scene;
  8. public Scene Scene
  9. {
  10. get
  11. {
  12. return this.scene;
  13. }
  14. set
  15. {
  16. this.scene = value;
  17. }
  18. }
  19. }
  20. }