示例#1
0
        private void DisableAllUICanvas(SceneLoadedEvent e)
        {
            foreach (GraphicRaycaster go in GameObject.FindObjectsOfType <GraphicRaycaster> ())
            {
                go.gameObject.SetActive(false);

                Debug.Log(go.gameObject.name + " disable, UI should be loaded by UIManager");
            }
        }
示例#2
0
 public void SceneLoadedCallBack(object sender, SceneLoadedEvent showSceneEvent)
 {
     if (m_loadedSceneEvent != null)
     {
         foreach (callback call in m_loadedSceneEvent)
         {
             call?.Invoke(showSceneEvent);
         }
     }
 }
示例#3
0
        void Handlecallback(SceneLoadedEvent loadedEvent)
        {
            //Show UI, if you have
            //if (loadedEvent.GetSceneName () == SceneLookupEnum.PaperPleasePrototype.ToString ().ToLower ()) {
            //	//UIManager.Instance ().ShowPanel<UIDirectionButtonPanel> ();
            //	UIManager.Instance ().ShowPanel<UIStartIntroPanel> ();
            //}

            //virtualMachineInterface = new VirtualMachineInterface ();
            //virtualMachineInterface.Start ();
            //SceneManager.Instance ().RemoveSceneLoadedEvent (Handlecallback);
        }
示例#4
0
        private void LoadSceneScript(SceneLoadedEvent e)
        {
            string path = AssetsManager.APPLICATION_PATH;

            path += "Scripts/Scenes/";

            if (!Directory.Exists(path))
            {
                return;
            }

            //path += m_currentSceneName;

            if (!File.Exists(path))
            {
                return;
            }
        }
示例#5
0
 public virtual void SceneLoaded(object sender, SceneLoadedEvent showSceneEvent)
 {
 }