public void EnterScene(SceneBase scene) { if (CurrentScene != null) { CurrentScene.OnSceneWillUnload(); CurrentScene.OnSceneUnloaded(); } CurrentScene = scene; CurrentScene.OnSceneWillLoad(); CurrentScene.OnSceneLoaded(); }
public void EnterScene(SceneBase scene) { if (CurrentScene != null) { CurrentScene.OnSceneWillUnload(); CurrentScene.OnSceneUnloaded(); } CurrentScene = scene; CurrentScene.OnSceneWillLoad(); CurrentScene.OnSceneLoaded(); }