public IEnumerator UnloadWithWait() { foreach (string sceneName in activeScenes) { if (sceneName != null) { unloadScene.UnloadScene(sceneName); } } yield return(new WaitForSeconds(0.3f)); addScene.AddSceneCallback(sceneToLoad); }
public IEnumerator UnloadWithWait() { foreach (string sceneName in activeScenes) { if (sceneName != null) { unloadScene.UnloadScene(sceneName); } } yield return(new WaitForSeconds(0.3f)); addScene.AddSceneCallback(sceneToLoad); }