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"); } }
public void SceneLoadedCallBack(object sender, SceneLoadedEvent showSceneEvent) { if (m_loadedSceneEvent != null) { foreach (callback call in m_loadedSceneEvent) { call?.Invoke(showSceneEvent); } } }
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); }
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; } }
public virtual void SceneLoaded(object sender, SceneLoadedEvent showSceneEvent) { }