コード例 #1
0
    /// <summary>
    /// 获取一个资源依赖列表
    /// </summary>
    /// <returns>The depends.</returns>
    /// <param name="resName">Res name.</param>

    public string[] GetDepends(string resName)
    {
        if (mDependsConfig == null)
        {
            return(default(string[]));
        }

#if USE_5_BUNDLE
        return(mDependsConfig.GetAllDependencies(resName));
#else
        for (int i = 0; i < mDependsConfig.Count; i++)
        {
            if (mDependsConfig[i].name == resName)
            {
                return(mDependsConfig[i].depends);
            }
        }
#endif

        return(null);
    }