- Home /
button OnClick function triggering another buttons OnClick
So I have this game where every time the player dies, a small menu pops up with two buttons, retry or go to menu. At first I wrote the OnClick function of Retry and all was working, then I wrote the OnClick function of go to Menu (which takes us to another scene) and it worked. But now every time i click the retry button it does its job but then also takes me to the menu scene, why is it triggering the menu button? also i tried removing the menu buttons OnClick function and everything worked fine, its just that the retry button is also triggering the menu button.
Comment
how do you retry? maybe it's not triggering the menu button but it's function results in the same outcome. And how have you hooked the events?