Exemplo n.º 1
0
    public void LoadNextScene(string sceneName, DelAfterLoadScene del = null)
    {
        if (willShowSceneName == sceneName)
        {
            return;
        }
        willShowSceneName = sceneName;
        theDel            = del;

        StartCoroutine(LoadScene(sceneName));

        GameTool.ClearMemory();
    }
Exemplo n.º 2
0
 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));
     }
 }