ReleaseObj() public method

public ReleaseObj ( ) : void
return void
Ejemplo n.º 1
0
 /// <summary>
 /// 释放单个资源
 /// </summary>
 /// <param name="name"></param>
 public void ReleaseResObj(string name)
 {
     if (resObjs.ContainsKey(name))
     {
         AssetObj tmpObj = resObjs[name];
         tmpObj.ReleaseObj();
     }
     else
     {
         Debug.Log("Release object name is not exit == " + name);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 释放单个资源
 /// </summary>
 /// <param name="name"></param>
 public void ReleaseResObj(string name)
 {
     if (mResObjDict.ContainsKey(name))
     {
         AssetObj assetObj = mResObjDict[name];
         assetObj.ReleaseObj();
     }
     else
     {
         Debug.Log("要释放的资源不存在" + name);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 释放单个资源
 /// </summary>
 /// <param name="name"></param>
 public void ReleaseResObj(string name)
 {
     if (dicAssetObj.ContainsKey(name))
     {
         AssetObj obj = dicAssetObj[name];
         obj.ReleaseObj();
         //dicAssetObj.Remove(name);
     }
     else
     {
         Debug.LogError("release obj name is not exit : " + name);
     }
 }