- Home /
I have a main menu, and I want to have another button with more games. How can I do that?
public var welcomeLabel : GUIStyle; public var scoreLabel : GUIStyle; public var customSkin : GUISkin; public var welcomeRocket : Rect; public var playGameRect : Rect; public var quitRect : Rect;
function OnGUI(){
Screen.lockCursor = false;
Time.timeScale=1;
var scale : Vector3 = new Vector3(Screen.width / 1280.0, Screen.height / 1024.0, 1.0);
GUI.matrix = Matrix4x4.Scale(scale);
GUI.Label(welcomeRocket, "ParkingGame",welcomeLabel);
GUI.skin = customSkin;
GUI.skin = customSkin; //1
if(GUI.Button(playGameRect, "Play")){
Application.LoadLevel(1);
}
if(GUI.Button(quitRect,"Exit")){
Application.Quit();
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613160303im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
On off game objects 1 Answer
how to run Sprint 1 Answer
CS8025 error on play button 1 Answer