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

            path = XCSharp.FileURI(path);
            if (Application.platform == RuntimePlatform.WindowsEditor ||
                Application.platform == RuntimePlatform.WindowsPlayer)
            {
                path = path.Replace("file://", "file:///");
            }
            return(path);
        }
Пример #2
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);
        }