public static void LoadAsync(string name, LoadCallBack callBack) { string path = ResourcesConfigManager.GetResourcePath(name); if (m_gameLoadType == ResLoadLocation.Resource) { ResourceIOTool.ResourceLoadAsync(path, callBack); } else { AssetsBundleManager.LoadAsync(path, callBack); } }
public static void LoadAsync(string name, LoadCallBack callBack) { if (name == null) { throw new Exception("ResourceManager LoadAsync -> name is null !"); } string path = ResourcesConfigManager.GetResourcePath(name); if (m_gameLoadType == ResLoadLocation.Resource) { ResourceIOTool.ResourceLoadAsync(path, null, callBack); } else { AssetsBundleManager.LoadAsync(path, null, callBack); } }
public static void LoadAsync(string name, LoadCallBack callBack) { ResourcesConfig packData = ResourcesConfigManager.GetBundleConfig(name); if (packData == null) { return; } if (m_gameLoadType == ResLoadLocation.Resource) { ResourceIOTool.ResourceLoadAsync(packData.path, callBack); } else { AssetsBundleManager.LoadAsync(name, callBack); } }
public static void LoadAsync(string name, LoadCallBack callBack) { BundleConfig packData = BundleConfigManager.GetBundleConfig(name); if (packData == null) { return; } ResLoadType loadTypeTmp = GetLoadType(packData.loadType); if (loadTypeTmp == ResLoadType.Resource) { ResourceIOTool.ResourceLoadAsync(packData.path, callBack); } else { AssetsBundleManager.LoadAsync(name, callBack); } }