Exemplo n.º 1
0
 private void InitAsync()
 {
     if (mLoadingReqs == null)
     {
         mLoadingReqs = new BetterList <int>();
     }
     if (mDependItemPool == null)
     {
         mDependItemPool = new ObjectItemPool <DependencsLoader>();
     }
 }
Exemplo n.º 2
0
 private void UnloadAsync()
 {
     if (mLoadingReqs != null)
     {
         mLoadingReqs.Release();
         mLoadingReqs = null;
     }
     if (mDependItemPool != null)
     {
         mDependItemPool.UnLoadAll();
         mDependItemPool = null;
     }
 }