コード例 #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();
         }
     }
 }
コード例 #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);
    }
コード例 #3
0
ファイル: ResourcesDB.cs プロジェクト: xiaolinggnb/CodeZero
    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);
    }
コード例 #4
0
 public string GetLoadingKey()
 {
     return(ResourceInfo.GetResourcesKey(m_resourcesType, m_resName));
 }
コード例 #5
0
ファイル: ResourcesDB.cs プロジェクト: xiaolinggnb/CodeZero
    public bool IsResourceExist(EResourcesType resType, string name)
    {
        string key = ResourceInfo.GetResourcesKey(resType, name);

        return(IsResourceExist(key));
    }
コード例 #6
0
ファイル: ResourcesDB.cs プロジェクト: xiaolinggnb/CodeZero
    public void UnloadResource(EResourcesType resType, string name)
    {
        string key = ResourceInfo.GetResourcesKey(resType, name);

        UnloadResource(key);
    }