Quantcast
Channel: Latest Questions by MasterBLB
Viewing all articles
Browse latest Browse all 44

Magically changed initial value

$
0
0
Hi folks I have a script: public class MainMenu : MonoBehaviour { bool drawOptionsMenu = false; bool drawHelpMenu = false; bool drawAboutMenu = true; void OnGUI() { print("help:"+drawHelpMenu+"\nabout:"+drawAboutMenu+"\noptions:"+drawOptionsMenu); GUI.enabled = !(drawHelpMenu || drawAboutMenu || drawOptionsMenu); ........................................ } } Can someone tell me,why the print returns me that all booleans are false?o.O

Viewing all articles
Browse latest Browse all 44

Trending Articles



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