I am using a modified pinch zoom script I found on unity answers. And it is working well to zoom the camera. The problem I have is that I have also set actions to happen on Input.GetButtonUp(“Fire1”).
When I finish zooming the action on buttonup happens as well. Which of course makes good sense since Fire1 does come up. To solve the problem I tried adding a bool value that I set to true when I was zooming then the first buttonup(fire1) i ignore and set the value back to false. However it just plumb doesn’t work.
Anyone have any idea what I need to do to ignore the first buttonup(fire1) after a multitouch (2 finger) sequence?
Thanks