Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        Cursor.visible   = true;
        Cursor.lockState = CursorLockMode.Confined;

        UWKWebView view      = gameObject.AddComponent <UWKWebView>();
        string     parsedUrl = url + entry + DataDistributor.id + "_" + Log.pcID;

        view.URL = parsedUrl;

        view.URLChanged += SwitchWhenWebsiteChange;

        view.MaxHeight     = Screen.height;
        view.MaxWidth      = Screen.width;
        view.InitialHeight = Screen.height;
        view.InitialWidth  = Screen.width;
        view.Width         = Screen.width;
        view.Height        = Screen.height;
        view.ConnectToUrl(parsedUrl);

        numOfNewUrl = 0;
    }