Hi guys,
I'm new to ios development and am trying to understand the touch input.
The below code works but it's constantly updating resulting in printed word "Tapped" being printed in the console 10's of times at once. How can i have it run the code only once per tap?
void FixedUpdate() {
if (Input.touchCount > 0){
print("Tapped");
}
}
Cheers
↧