Hey guys,
is it possible to check if a gui button is pressed in a Update()?
Some background:
Making a basic jump game on android. If you tap anywhere on screen you jump. except if you hit the menu button the menu should pop up and you should not jump. is there a way to check if button was pressed?
right now i am detecting the jump simply by
Update() {
if(Input.GetMouseButtonDown(0)) {
Jump();
}
is there anything i can put in that if statement before the Jump() to check if a specific gui button was pressed?
Thanks guys