using Blue; using UnityEngine; /// /// 打开对应的场景地图 /// public class EnterSceneSelectARMap : AbstractController { private GameObject objShowRoom; private GameObject objOffice; void Start() { this.SubscribeEvent(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); */ }); } }