I’m keeping track of the first touch on the screen by storing the LastTouchId() into a variable when a new touch has started and there is no current value in the variable (the variable is set to -1 when the first touch has ended)
I’d like to track only that touch, so any subsequent touches are ignored.
What’s the best way to check that an object has been touched and is that the Id of that touch matches the one in the variable?
Or alternatively, how do I only allow for one touch to be registered in the game?