Esempio n. 1
0
 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();
         }
     }
 }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
    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);
    }
Esempio n. 4
0
 public string GetLoadingKey()
 {
     return(ResourceInfo.GetResourcesKey(m_resourcesType, m_resName));
 }
Esempio n. 5
0
    public bool IsResourceExist(EResourcesType resType, string name)
    {
        string key = ResourceInfo.GetResourcesKey(resType, name);

        return(IsResourceExist(key));
    }
Esempio n. 6
0
    public void UnloadResource(EResourcesType resType, string name)
    {
        string key = ResourceInfo.GetResourcesKey(resType, name);

        UnloadResource(key);
    }