Beispiel #1
0
 public void RestartGame()
 {
     SoundController.Instance.StopMusic();
     SceneManager.LoadScene(SceneManager.GetActiveScene().name);
     waitingList.Clear();
     IsPlaying = false;
 }
Beispiel #2
0
 protected void DisposeNoGcCode()
 {
     if (Manifest != null)
     {
         Object.DestroyImmediate(Manifest, true);
     }
     mBundleTaskList.Clear();
     mWaitLoadBundleList.Clear();
     RemoveAllAsset();
     IsDispose = true;
     sInstance = null;
 }
Beispiel #3
0
            protected void DisposeNoGcCode()
            {
                if (Manifest != null)
                {
                    Object.DestroyImmediate(Manifest, true);
                }
                mBundleTaskList.Clear();
                if (mWaitLoadBundleList.Count != 0)
                {
                    DLog.LogError(mAppName + ":删除LoaderManager时,发现仍然有未完成的加载动作.可能会对后续资源加载造成影响.");
                    for (int i = mWaitLoadBundleList.Count - 1; i >= 0; i--)
                    {
                        BaseBundle tbundle = mWaitLoadBundleList[i];
                        mBundleList.Remove(tbundle, false);
                        PublicUpdateManager.AddWaitLoadBundle(tbundle);
                    }
                }

                mWaitLoadBundleList.Clear();
                RemoveAllAsset();
            }