Hmm. For the event to be raised twice, it means that the OnInit is also called twice, but OnInit should really only be called once in the code. I tried reproducing a case where it could be called more than once but (thankfully )didn’t really happen.
Do you by any chance, have the same UI button reference on more than one ‘ButtonClicked ‘ conditions which are one right after the other?
What I mean by that, is something like the following image. In this case, even a single click at the button (which is the same), will instantly make two transitions, since at the time the button is clicked, both of the conditions are true.
Let me know if that is indeed the case, or something completely different.
The change you’ve made by the way, is fine and should work fine as well. I am just trying to figure out what is the cause 🙂
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Attachments:
ButtonClickOrder.png
Login
Register
By registering on this website you agree to our Privacy Policy.