예제 #1
0
 // Update is called once per frame
 void Update()
 {
     if (WebMediator.IsVisible())
     {
         ProcessMessages();
     }
     else if (Input.GetButtonDown("Fire1") && Input.mousePosition.y < Screen.height / 2)
     {
         ActivateWebView();
     }
 }
예제 #2
0
 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());
     }
 }