Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1.     // If there are two touches on the device...
  2.         if (Input.touchCount == 2){
  3.                
  4.             // Store both touches.
  5.             Touch touchZero = Input.GetTouch(0);
  6.             Touch touchOne = Input.GetTouch(1);
  7.  
  8.             if(EventSystem.current.IsPointerOverGameObject(touchZero.fingerId) == false
  9.                && EventSystem.current.IsPointerOverGameObject(touchOne.fingerId) == false
  10.             ){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement