예제 #1
0
		private void OnDestroy()
		{
			if (assetCat != null)
				assetCat.SubRefCount(1, true);
			else
				LogCat.LogErrorFormat("{0} destroy but ont find assetCat", name);
		}
예제 #2
0
        public void ReleasePreAssetCat()
        {
            if (preAssetCat != null)
            {
                if (!preAssetCat.IsLoadSuccess())
                {
                    preAssetCat.RemoveCallback(this);
                }
                preAssetCat.SubRefCount(1, true);
            }

            preAssetPath = null;
            preAssetCat  = null;
        }
예제 #3
0
        public void ReleaseCurAssetCat()
        {
            if (curAssetCat != null)
            {
                if (!curAssetCat.IsLoadSuccess())
                {
                    curAssetCat.RemoveCallback(this);
                }
                curAssetCat.SubRefCount(1, true);
            }

            curAssetPath = null;
            curAssetCat  = null;
        }
예제 #4
0
 public void Destroy()
 {
     refCount = 0;
     assetCat.SubRefCount(1, true);
 }