So, I have this simple code:
public class SettingsMenu : MonoBehaviour
public GameObject modalWindow;
public void OpenModal()
I want it to show modal window with my custom options, when you click this button called "OPCJE" (which means "OPTIONS" in Polish):
So, basically, the problem is when I have opposite false/true statement. I mean, if I have modal opened and I want it to close - everything works perfect. It doesn't work when I try to OPEN modal window.
In Makinom I have something like this:
Is there a possible way to do this sort of thing easier, or try to force my way to work :)?