EnterSceneSelectARMap.cs 1.0 KB

123456789101112131415161718192021222324252627
  1. using Blue;
  2. using UnityEngine;
  3. /// <summary>
  4. /// 打开对应的场景地图
  5. /// </summary>
  6. public class EnterSceneSelectARMap : AbstractController
  7. {
  8. private GameObject objShowRoom;
  9. private GameObject objOffice;
  10. void Start()
  11. {
  12. this.SubscribeEvent<SelectEnterSceneEvent>(e=>
  13. {
  14. if(e.EnterSceneName=="巅峰文创展厅")
  15. GameObject.Find("ARSpaceForAll").transform.Find("AR_Map_ShowRoom").gameObject.SetActive(true);
  16. else if(e.EnterSceneName=="巅峰办公室区")
  17. GameObject.Find("ARSpaceForAll").transform.Find("AR_Map_Office").gameObject.SetActive(true);
  18. /*
  19. if(e.EnterSceneName=="一楼展厅测试")
  20. GameObject.Find("ARSpaceForAll").transform.Find("AR_Map_ShowRoom").gameObject.SetActive(true);
  21. else if(e.EnterSceneName=="Test01")
  22. GameObject.Find("ARSpaceForAll").transform.Find("AR_Map_Office").gameObject.SetActive(true);
  23. */
  24. });
  25. }
  26. }