I have:
-2 MenuButton
-1 PauseCanvas with some buttons
I want to set the PauseCanvas active when I press the MenuButton1. And then I want to press the MenuButton2 to Disable the PauseCanvas.
So i have:
-An FSM to the PauseCanvas
Start --->State1 (It sets the PauseCanvas to be disabled at the start)
-The MenuButton1
Start --->State1 | UGUI/ON CLICK --->State 2 (Sets the PauseCanvas and MenuButton1 to be disabled/Set the MenuButton2 to be active)
-The MenuButton2
Start --->State1 | UGUI/ON CLICK --->State 2 (Sets the PauseCanvas and MenuButton1 to be active/Set the MenuButton2 to be disabled)