internal SEUResources LoadManifest(string path) { if (m_ManifestPath != null) { string manifestPath = m_ManifestPath; System.Type type = typeof(AssetBundleManifest); int resGUID = ToResGUID(manifestPath, type); SEUResources resource = null; if (m_AssetBundles.ContainsKey(resGUID)) { resource = m_AssetBundles[resGUID]; if (resource.asset == null) { resource.LoadAsset(); } } else { resource = new SEUResourceMenifest(manifestPath, type); PushResource(resource); resource.LoadAsset(); } return(resource); } return(null); }
internal AsyncRequest LoadManifestAsync(string path) { if (m_ManifestPath != null) { string manifestPath = m_ManifestPath; System.Type type = typeof(UnityEngine.Object); int resGUID = ToResGUID(manifestPath, type); SEUResources resource = null; if (m_AssetBundles.ContainsKey(resGUID)) { resource = m_AssetBundles[resGUID]; } else { resource = new SEUResourceMenifest(manifestPath, type); PushResource(resource); } return(resource.SendLoadAsyncRequest()); } return(null); }