internal bool Unload() { if (m_BundleLoadOperation == null) { Debug.LogWarningFormat("Simulated assetbundle {0} is already unloaded.", m_Name); } m_HeaderBytesLoaded = 0; m_BundleLoadOperation = null; return(true); }
internal VBAsyncOperation <VirtualAssetBundle> StartLoad(IResourceLocation location) { if (m_BundleLoadOperation != null) { if (m_BundleLoadOperation.IsDone) { Debug.LogWarningFormat("Simulated assetbundle {0} is already loaded.", m_Name); } else { Debug.LogWarningFormat("Simulated assetbundle {0} is already loading.", m_Name); } return(m_BundleLoadOperation); } m_HeaderBytesLoaded = 0; return(m_BundleLoadOperation = new LoadAssetBundleOp(location, this)); }