I've a classic
void Update() {
if(Input.GetMouseButtonDown (0))
Fire();
}
What i want to do is that if I click on a UI button , the "Fire"Fire()
routine not will be called.
How to do to say Unity "if InputGetMouseButtonDown(0) && !UI clicked"if InputGetMouseButtonDown(0) && !UI clicked
?
Thanks