Beispiel #1
0
 VirtualAssetBundleManager GetManager()
 {
     if (m_Manager == null)
     {
         m_Manager = VirtualAssetBundleManager.CreateManager(ResourceManager.OnResolveInternalId);
     }
     return(m_Manager);
 }
Beispiel #2
0
 public InternalProviderOperation <TObject> Start(VirtualAssetBundleManager mgr, IResourceLocation location, IAsyncOperation <IList <object> > loadDependencyOperation)
 {
     Context               = location;
     m_Manager             = mgr;
     m_Result              = null;
     m_RequestOperation    = null;
     m_DependencyOperation = loadDependencyOperation;
     if (loadDependencyOperation == null)
     {
         m_Action(null);
     }
     else
     {
         loadDependencyOperation.Completed += m_Action;
     }
     return(base.Start(location));
 }
Beispiel #3
0
 /// <summary>
 /// Construct a new VirtualAssetBundleProvider object with a specific manager and id
 /// </summary>
 /// <param name="mgr">The VirtualAssetBundleManager to use.</param>
 /// <param name="providerId">The provider id.</param>
 public VirtualAssetBundleProvider(VirtualAssetBundleManager mgr, string providerId)
 {
     m_ProviderId = providerId;
     m_Manager    = mgr;
 }