public static void Release <T>(IPoolObject iobj) where T : class, IPoolObject { T t = iobj as T; if (t != null) { TsLog.LogWarning("Release T", new object[0]); ObjectPoolManager.Release <T>(t); } }
public void OnCompleteDonwload(WWWItem wItem, object wwwdownload) { object mainAsset = wItem.mainAsset; if (mainAsset == null) { TsLog.LogWarning("WWW.mainAsset casting error. {0}", new object[] { wItem.assetPath }); } else { ResourceCache.LifeSaver value = new ResourceCache.LifeSaver(mainAsset); ResourceCache.WWWDownloader.ms_refCacheDic.Add(wItem.assetPath, value); this.callback(wItem, this.param); } ResourceCache.WWWDownloader tobj = wwwdownload as ResourceCache.WWWDownloader; ObjectPoolManager.Release <ResourceCache.WWWDownloader>(tobj); }
public static void Release <T>(T tobj) where T : class, IPoolObject { ObjectPoolManager.Release <T>(tobj, new ObjectPoolKey(typeof(T))); }