public void CancelLoadTask(EResourcesType resType, string resName) { for (int i = 0; i < m_loaderArr.Length; i++) { if (m_loaderArr[i].GetLoadingKey().Equals(ResourceInfo.GetResourcesKey(resType, resName))) { m_loaderArr[i].CancelLoad(); } } }
public bool IsLoading(EResourcesType resType, string resName) { for (int i = 0; i < m_loaderArr.Length; i++) { if (m_loaderArr[i].GetLoadingKey().Equals(ResourceInfo.GetResourcesKey(resType, resName)) && m_loaderArr[i].IsLoading()) { return(true); } } return(false); }
public ResourceInfo GetResourceInfo(EResourcesType resType, string resName) { string key = ResourceInfo.GetResourcesKey(resType, resName); ResourceInfo info = null; if (m_resourcesInfoDic.TryGetValue(key, out info)) { return(info); } return(null); }
public string GetLoadingKey() { return(ResourceInfo.GetResourcesKey(m_resourcesType, m_resName)); }
public bool IsResourceExist(EResourcesType resType, string name) { string key = ResourceInfo.GetResourcesKey(resType, name); return(IsResourceExist(key)); }
public void UnloadResource(EResourcesType resType, string name) { string key = ResourceInfo.GetResourcesKey(resType, name); UnloadResource(key); }