Exemple #1
0
    private void Update()
    {
        #if UNITY_EDITOR
        if (Application.platform == RuntimePlatform.OSXEditor)
        {
            if (_webViewId != 0 && !_hidden)
            {
                if (Input.GetKeyDown(KeyCode.Escape))
                {
                    if (UniWebViewPlugin.CanGoBack(gameObject.name))
                    {
                        UniWebViewPlugin.GoBack(gameObject.name);
                    }
                    else
                    {
                        WebViewDone("");
                    }
                }
                else
                {
                    _inputString += Input.inputString;
                }
            }
        }
        #endif

        //Handle screen auto orientation.
        if (OrientationChanged())
        {
            ResizeInternal();
        }
    }
Exemple #2
0
 /// <summary>
 /// Determines whether the webview can go back.
 /// </summary>
 /// <returns><c>true</c> if this instance can go back, which means there is at least one page in the navigation stack below;
 /// otherwise, <c>false</c>.</returns>
 public bool CanGoBack()
 {
     return(UniWebViewPlugin.CanGoBack(gameObject.name));
 }
Exemple #3
0
 public bool CanGoBack()
 {
     return(UniWebViewPlugin.CanGoBack(((Object)((Component)this).get_gameObject()).get_name()));
 }