- Home /
UI button not work build .
private void Start() { Cursor.visible = true; Cursor.lockState = CursorLockMode.None; } [Header("UIPages")] public GameObject settingsScreen; public GameObject creditsScreen; public GameObject mainScreen;
public void StartGame()
{
//Application.LoadLevel("GameScene");
SceneManager.LoadScene(1);
}
public void Settings()
{
mainScreen.SetActive(false);
settingsScreen.SetActive(true);
}
public void set2Menu()
{
mainScreen.SetActive(true);
settingsScreen.SetActive(false);
}
public void Credits()
{
mainScreen.SetActive(false);
creditsScreen.SetActive(true);
}
public void cre2Menu()
{
mainScreen.SetActive(true);
creditsScreen.SetActive(false);
}
public void Exit()
{
Application.Quit();
}
Comment
Your answer
Follow this Question
Related Questions
can mono touch be used to make unity iPhone plugins 0 Answers
how to select which object i want to use in itween C# 0 Answers
call function in javascript from c# script 1 Answer
Help with a building system. 0 Answers
Download a WWW int? Or convert? 1 Answer