public void OnPoolDispose() { _type = null; _data = null; _loadItem = null; _loadQueue = null; }
public void OnPoolReset() { _type = null; _data = null; _loadItem = null; _loadQueue = null; }
private void DispatchEvent(string type, LoadQueue queue) { ResourceManagerEventArgs eventArgs = App.objectPoolManager.GetObject <ResourceManagerEventArgs>(); eventArgs.type = type; eventArgs.loadQueue = queue; App.resourceManager.DispatchEvent(eventArgs); App.objectPoolManager.ReleaseObject(eventArgs); }
/// <summary> /// 立即加载资源 /// </summary> /// <param name="queue"></param> /// <returns></returns> public LoadQueue LoadImmediately(LoadQueue queue) { queue.LoadImmediately(); return(queue); }
/// <summary> /// 加载资源 /// </summary> /// <param name="queue"></param> /// <returns></returns> public LoadQueue Load(LoadQueue queue) { queue.Load(); return(queue); }
public ResourceManagerEventArgs(string type, LoadQueue loadQueue) { _type = type; _loadQueue = loadQueue; }