Quantcast
Channel: Latest Questions by 07Mr07
Viewing all articles
Browse latest Browse all 59

Pause Menu does not appears

$
0
0
I need to show a pause main when click on pause button, the game is paused right, but menu dont appears. I cant see what is wrong some help pls? Thanks :D if (GUI.Button(Rect(sW-65,10,50,50),pause)) { if(paused == true) { Time.timeScale = 0.0; } else { Time.timeScale = 1.0; } GUI.BeginGroup(Rect(Screen.width/2 - 150, 50, 300, 750)); //the menu background box GUI.Box(Rect(0, 0, 300, 250), ""); //logo picture GUI.Label(Rect(15, 10, 300, 68), logoTexture); //pause menu buttons //game resume button if(GUI.Button(Rect(55, 100, 180, 40), "Resume")) { //resume the game Time.timeScale = 1.0; if(GUI.Button(Rect(55, 150, 180, 40), "Main Menu")) { Application.LoadLevel(0); } //quit button if(GUI.Button(Rect(55, 200, 180, 40), "Quit")) { Application.Quit(); } //layout end GUI.EndGroup(); } }

Viewing all articles
Browse latest Browse all 59

Latest Images

Trending Articles



Latest Images

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