public IEnumerator ClearCurrSceneAsync() { if (m_CurrSceneModule == null) { yield break; } if (m_CurrSceneModule.SceneManager != null) { m_CurrSceneModule.SceneManager.Clear(); } if (m_CurrSceneModule.Data != null) { yield return(SceneManager.UnloadSceneAsync(m_CurrSceneModule.Data.sceneName)); } }
IObservable <AsyncOperation> UnloadSceneInternal(Scene scene) { return(UnitySceneManager.UnloadSceneAsync(scene.sceneName).AsAsyncOperationObservable()); }