Пример #1
0
        public static string StreamBundleURI(string package)
        {
            string path = AssetPath.StreamBundlePath(package);

            if (Application.platform != RuntimePlatform.Android)
            {
                path = XCSharp.FileURI(path);
                if (Application.platform == RuntimePlatform.WindowsEditor ||
                    Application.platform == RuntimePlatform.WindowsPlayer)
                {
                    path = path.Replace("file://", "file:///");
                }
            }
            else
            {
                path = XCSharp.JarFileURI(path);
            }
            return(path);
        }