IEnumerator LoadAsyncGameScene(Enums.GameScene pScene) { sceneName = pScene; asyncLoadedScene = SceneManager.LoadSceneAsync(sceneName.ToString(), LoadSceneMode.Single); asyncLoadedScene.allowSceneActivation = false; checkSceneLoad = true; yield return(asyncLoadedScene); }
public void LoadSceneAsync(Enums.GameScene pScene, GameManagerParams param = null) { if (!checkSceneLoad) { this.param = param; StartCoroutine("LoadAsyncGameScene", pScene); } }