Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# quit button script

public class MainMenu : MonoBehaviour
{

    public void QuitGame()
    {
        Application.Quit();
    }
}
//add QuitGame to the Button On click Function
//Fill the object accordingly
 
PREVIOUS NEXT
Tagged: #quit #button #script
ADD COMMENT
Topic
Name
2+3 =