Пример #1
0
        private static string GetAssetRealUrl(string url)
        {
            if (!PandoraSettings.UseStreamingAssets)
            {
                return(url);
            }
            string fileName = Path.GetFileName(url);

            if (!LocalDirectoryHelper.IsStreamingAssetsExists(fileName))
            {
                return(url);
            }
            return(LocalDirectoryHelper.GetStreamingAssetsUrl() + "/" + fileName);
        }