public static void UnLoad(string name) { string path = ResourcesConfigManager.GetResourcePath(name); if (m_gameLoadType == ResLoadLocation.Resource) { } else { AssetsBundleManager.UnLoadBundle(path); } }
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 T Load <T>(string name) where T : UnityEngine.Object { string path = ResourcesConfigManager.GetResourcePath(name); if (m_gameLoadType == ResLoadLocation.Resource) { return(Resources.Load <T>(path.Replace("/", "\\"))); } else { return(AssetsBundleManager.Load <T>(path)); } }
public static object Load(string name) { string path = ResourcesConfigManager.GetResourcePath(name); if (m_gameLoadType == ResLoadLocation.Resource) { return(Resources.Load(path)); } else { return(AssetsBundleManager.Load(path)); } }
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 UnLoad(string name) { if (name == null) { throw new Exception("ResourceManager UnLoad -> name is null !"); } //Debug.Log("UnLoad ==>>" + name); string path = ResourcesConfigManager.GetResourcePath(name); if (m_gameLoadType == ResLoadLocation.Resource) { } else { AssetsBundleManager.UnLoadBundle(path); } }
public static T Load <T>(string name) where T : UnityEngine.Object { if (name == null) { throw new Exception("ResourceManager Load<T> -> name is null !"); } string path = ResourcesConfigManager.GetResourcePath(name); if (m_gameLoadType == ResLoadLocation.Resource) { return(Resources.Load <T>(path.Replace("/", "\\"))); } else { return(AssetsBundleManager.Load <T>(path)); } }
public static object Load(string name) { if (name == null) { throw new Exception("ResourceManager Load -> name is null !"); } string path = ResourcesConfigManager.GetResourcePath(name); if (m_gameLoadType == ResLoadLocation.Resource) { return(Resources.Load(path)); } else { return(AssetsBundleManager.Load(path)); } }