示例#1
0
 public void SetTrackableEH(DefaultTrackableEventHandler go)
 {
     if (go.scene == null)
     {
         var sc = _currentGC.GetSceneContainerByName(go.name);
         if (sc == null)
         {
             Debug.Log("SceneContainer is not initialized");
             if (_currentGameRunningType == GameRunningType.Edit)
             {
                 Debug.Log("Add new scene to quest");
                 sc      = new SceneContainer(true);
                 sc.name = go.name;
             }
             else
             {
                 go.gameObject.SetActive(false);
                 return;
             }
         }
         _currentT = go;
         GameObject newSM = new GameObject();
         ARQuestCreator.SceneCreator.SceneManager newSceneManager = newSM.AddComponent <ARQuestCreator.SceneCreator.SceneManager>();
         newSceneManager.SetScene(sc);
         _currentT.scene = newSceneManager;
         ScreenSpaceUIManager.Instance.GetComponentInChildren <UIEditiSceneController>().SetSceneManager(newSceneManager);
     }
 }