Exemplo n.º 1
0
        public static string GetValidAssetBundlePath(string resName)
        {
            resName = resName.ToLower();
            string text = Path.Combine(AppConst.ResourcePath, Path.Combine(Util.GetRuntimeFolderName(Application.get_platform()).ToLower(), resName));

            if (File.Exists(text))
            {
                return(text);
            }
            return(Path.Combine(Application.get_dataPath() + "/assets", Path.Combine(Util.GetRuntimeFolderName(Application.get_platform()).ToLower(), resName)));
        }