public static void OpenURL(string url)
        {
            AssetStoreWindow window      = Init();
            bool             shouldDefer = !window.initialized;

            window.InvokeJSMethod("document.AssetStore", "openURL", url);
            AssetStoreContext.GetInstance().initialOpenURL = url;
            if (shouldDefer)
            {
                // Ugly hack - help, asset store team!
                window.ScheduleOpenURL(TimeSpan.FromSeconds(3));
            }
        }
Beispiel #2
0
        public static void OpenURL(string url)
        {
            AssetStoreWindow window = Init();
            bool             flag   = !window.initialized;

            object[] args = new object[] { url };
            window.InvokeJSMethod("document.AssetStore", "openURL", args);
            AssetStoreContext.GetInstance().initialOpenURL = url;
            if (flag)
            {
                window.ScheduleOpenURL(TimeSpan.FromSeconds(3.0));
            }
        }