/// <summary> /// 释放资源。 /// </summary> /// <param name="scenesName">场景名称</param> public void DisposeAllAssets(string scenesName) { if (_DicAllScenes.ContainsKey(scenesName)) { MultiABMgr multObj = _DicAllScenes[scenesName]; multObj.DisposeAllAsset(); } else { Debug.LogError(GetType() + "/DisposeAllAssets()/找不到场景名称,无法释放资源,请检查! scenesName=" + scenesName); } }
public void DisposeAllAssets(string sceneName) { if (_DicAllScene.ContainsKey(sceneName)) { MultiABMgr multObj = _DicAllScene[sceneName]; multObj.DisposeAllAsset(); } else { Debug.LogError("_DicAllScene 不包含" + sceneName); } }