Hey guys
I’m using enums + switch statements.
How can I check to see which case is currently true.
Like I wan’t to say something like this:
if (case NanoStage1States.Level1 == true)
{
do this.
}
I know I can just put it inside the switch statements but I don’t think I can do that with this:
void OnGUI() {
pressed = GUILayout.Toggle(pressed, "Toggle me !", "Button");
Debug.Log(pressed);
}
I’m probably making this confusing. My Question is…how can I make the toggle button appear only when I am in NanoStage1States.Level1?
Thanks!