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 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)); } }
public static T Load <T>(string name) where T : UnityEngine.Object { ResourcesConfig packData = ResourcesConfigManager.GetBundleConfig(name); if (packData == null) { throw new Exception("Load Exception not find " + name); } if (m_gameLoadType == ResLoadLocation.Resource) { return(Resources.Load <T>(packData.path)); } else { return(AssetsBundleManager.Load <T>(name)); } }
public static object Load(string name) { ResourcesConfig packData = ResourcesConfigManager.GetBundleConfig(name); if (packData == null) { throw new Exception("Load Exception not find " + name); } if (m_gameLoadType == ResLoadType.Resource) { return(Resources.Load(packData.path)); } else { return(AssetsBundleManager.Load(name)); } }