I have a quad object with a png graphic as a child object.
This area is the tap / click area.
I attached a script to the object and it has the code:
// Update is called once per frame
void FixedUpdate () {
bool tapped = Input.GetButton(“Fire1”);
if (tapped){
Debug.Log (“clicked!”);
}
}
Problem is, on click in the test version it fires twice, not once on click.
What do I do wrong here? I dont want a function to be called twice on tap or click.
Mirza