❔ Click event not working in Unity
I have created two buttons, one for previous and one for next. Each one has a method Previous() or Next() attached to it's OnClick event. For Some reason Previous() gets invoked but Next() does not. I did the same thing for both buttons.
I put
I put
Debug.Log("previous was called") and Debug.Log("next was called") to make sure and i never see "next was called" when clicking. What could be the issue for this? Something I thought of is that maybe there is something in front of the Next button that doesn't let me click the button but I didn't place anything other than the button there.