123456789101112131415161718192021222324252627 |
- using Blue;
- using UnityEngine;
- /// <summary>
- /// 打开对应的场景地图
- /// </summary>
- public class EnterSceneSelectARMap : AbstractController
- {
- private GameObject objShowRoom;
- private GameObject objOffice;
- void Start()
- {
- this.SubscribeEvent<SelectEnterSceneEvent>(e=>
- {
- if(e.EnterSceneName=="巅峰文创展厅")
- GameObject.Find("ARSpaceForAll").transform.Find("AR_Map_ShowRoom").gameObject.SetActive(true);
- else if(e.EnterSceneName=="巅峰办公室区")
- GameObject.Find("ARSpaceForAll").transform.Find("AR_Map_Office").gameObject.SetActive(true);
- /*
- if(e.EnterSceneName=="一楼展厅测试")
- GameObject.Find("ARSpaceForAll").transform.Find("AR_Map_ShowRoom").gameObject.SetActive(true);
- else if(e.EnterSceneName=="Test01")
- GameObject.Find("ARSpaceForAll").transform.Find("AR_Map_Office").gameObject.SetActive(true);
- */
- });
- }
- }
|