public void LoadNextScene(string sceneName, DelAfterLoadScene del = null) { if (willShowSceneName == sceneName) { return; } willShowSceneName = sceneName; theDel = del; StartCoroutine(LoadScene(sceneName)); GameTool.ClearMemory(); }
public void LoadNextScene(string sceneName, bool isLoadingBar = false, DelAfterLoadScene del = null) { willShowSceneName = sceneName; theDel = del; if (isLoadingBar) { view = (LoadingView)UIManager.Instance.ShowUI(EUiId.LoadingView); //开启一个异步任务 StartCoroutine(LoadScene(sceneName)); } else { StartCoroutine(LoadScene(sceneName)); } }