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