예제 #1
0
 public void OnPoolDispose()
 {
     _type      = null;
     _data      = null;
     _loadItem  = null;
     _loadQueue = null;
 }
예제 #2
0
 public void OnPoolReset()
 {
     _type      = null;
     _data      = null;
     _loadItem  = null;
     _loadQueue = null;
 }
예제 #3
0
        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);
        }
예제 #4
0
 /// <summary>
 /// 立即加载资源
 /// </summary>
 /// <param name="queue"></param>
 /// <returns></returns>
 public LoadQueue LoadImmediately(LoadQueue queue)
 {
     queue.LoadImmediately();
     return(queue);
 }
예제 #5
0
 /// <summary>
 /// 加载资源
 /// </summary>
 /// <param name="queue"></param>
 /// <returns></returns>
 public LoadQueue Load(LoadQueue queue)
 {
     queue.Load();
     return(queue);
 }
예제 #6
0
 public ResourceManagerEventArgs(string type, LoadQueue loadQueue)
 {
     _type      = type;
     _loadQueue = loadQueue;
 }