Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // If there are two touches on the device...
- if (Input.touchCount == 2){
- // Store both touches.
- Touch touchZero = Input.GetTouch(0);
- Touch touchOne = Input.GetTouch(1);
- if(EventSystem.current.IsPointerOverGameObject(touchZero.fingerId) == false
- && EventSystem.current.IsPointerOverGameObject(touchOne.fingerId) == false
- ){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement