I have two scenes, the primary Menu scene with a “Start game” button, and the InGame scene where I have a “Go back to menu” button. When I am at the InGame scene and I click to the “Go back to menu” button I load the Menu scene and unload the current one.
The problem is that, that specific mouse click at “Go back to menu” button fires again immidiatelly at the “Start game” button that exists only at the Menu scene!
It happens that both buttons are at about the same position on the screen. If I click the first button at the edge of the button where the two buttons don’t overlap, the second problematic click is not happening.
It is worth to mention that I use evt.StopPropagation(); at both button click handlers.
What am I missing here?