// Update is called once per frame void Update() { if (WebMediator.IsVisible()) { ProcessMessages(); } else if (Input.GetButtonDown("Fire1") && Input.mousePosition.y < Screen.height / 2) { ActivateWebView(); } }
void Update() { if (WebMediator.IsVisible()) { ProcessMessages(); } if (Input.GetKeyDown(KeyCode.Escape)) { DeactivateWebView(); aaa = false; StartCoroutine(klikacz()); } if (Input.GetButtonDown("Fire1") && Input.mousePosition.y > Screen.height / 8 + 12) { DeactivateWebView(); aaa = false; StartCoroutine(klikacz()); } }