Пример #1
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.C))
        {
            main_browser.CallFunction("ResizeWeb");
        }

        if (Input.GetKeyDown(KeyCode.B))
        {
            PlayVideo("C:/Users/Raytine/Desktop/620x252_search.mp4");
        }

        if (Input.GetKeyDown(KeyCode.V))
        {
            InitWebView(webView);
            webView.NavigateFile("demo.html");
        }

        if (Input.GetKeyDown(KeyCode.I))
        {
            InitWeb(url);
        }
    }
Пример #2
0
 public void LoadLocalFile()
 {
     webView.NavigateFile(localHTML);
     Show();
 }