Quantcast
Channel: Answers by "brunopava"
Viewing all articles
Browse latest Browse all 64

Answer by brunopava

$
0
0
Also, you need to toggle your boolean to false and true. Like this: public function Toggle() { if(MainMenuON){ // if its active, then deactivate MainMenuON = false; MainMenu.SetActive (false); } else{ // if its deactivated, then activate MainMenuON = true; MainMenu.SetActive (true); } } Then just choose this function on the inspector.

Viewing all articles
Browse latest Browse all 64

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>