InvokeJSMethod() private méthode

private InvokeJSMethod ( string objectName, string name ) : void
objectName string
name string
Résultat void
        public static void OpenURL(string url)
        {
            AssetStoreWindow assetStoreWindow = AssetStoreWindow.Init();

            assetStoreWindow.InvokeJSMethod("document.AssetStore", "openURL", new object[]
            {
                url
            });
            AssetStoreContext.GetInstance().initialOpenURL = url;
        }
        public static void OpenURL(string url)
        {
            AssetStoreWindow assetStoreWindow = AssetStoreWindow.Init();

            assetStoreWindow.InvokeJSMethod("document.AssetStore", "openURL", new object[]
            {
                url
            });
            assetStoreWindow.CreateContextObject();
            assetStoreWindow.m_ContextScriptObject.initialOpenURL = url;
        }
        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));
            }
        }
Exemple #4
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));
            }
        }