Ejemplo n.º 1
0
 public InitializeRequest Initialize()
 {
     if (initializeRequest == null)
     {
         initializeRequest = new ManifestInitializeRequest(this);
         AssetLoadCoroutine.Instance.StartCoroutine((initializeRequest as ManifestInitializeRequest).DoInitialize());
     }
     return(initializeRequest);
 }
Ejemplo n.º 2
0
 public void Destroy()
 {
     assetLocations.Clear();
     assetCache.Clear();
     mainBundles.Clear();
     foreach (var kv in bundles)
     {
         kv.Value.Unload();
     }
     bundles.Clear();
     initializeRequest = null;
 }