예제 #1
0
 /// <summary>
 /// 释放一个AB包
 /// </summary>
 /// <param name="sceneName"></param>
 /// <param name="bundleName"></param>
 public void DisposeAssetBundle(string sceneName, string bundleName)
 {
     if (mABManagerDict.ContainsKey(sceneName))
     {
         IABSceneManager sceneManager = mABManagerDict[sceneName];
         sceneManager.DisposeBundle(bundleName);
     }
 }
예제 #2
0
 //释放一个bundle
 public void UnLoadAssetBundle(string sceneName, string bundleName)
 {
     if (loadManager.ContainsKey(sceneName))
     {
         IABSceneManager tmpManager = loadManager[sceneName];
         tmpManager.DisposeBundle(bundleName);
     }
 }
예제 #3
0
    /// <summary>
    /// 释放一个包
    /// </summary>
    /// <param name="sceneName"></param>
    /// <param name="bundleName"></param>
    public void UnLoadAssetBundle(string sceneName, string bundleName)
    {
        if (sceneManagers.ContainsKey(sceneName))
        {
            IABSceneManager sceneMgr = sceneManagers[sceneName];

            sceneMgr.DisposeBundle(bundleName);
        }
    }