Пример #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)
 {
 }