示例#1
0
    /// <summary>
    /// 获取素材全路径
    /// </summary>
    /// <param name="path"></param>
    /// <returns></returns>
    string GetAssetFullPath(string path)
    {
        string assetPath = string.Empty;

        switch (Application.platform)
        {
        case RuntimePlatform.Android:
        case RuntimePlatform.IPhonePlayer:
            assetPath = Path.Combine(FileUtils.AppContentPath(), AppConst.ResIndexFile);
            break;

        default:
            assetPath = Path.Combine(FileUtils.AppContentPath(), AppConst.ResIndexFile);
            break;
        }
        return(Path.Combine(assetPath, path));
    }