Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# get custom attribute from property 
Csharp :: c# even or odd 
Csharp :: where in used in linq c# 
Csharp :: C# network traffic 
Csharp :: how to change dictionary value in c# 
Csharp :: c# convert list to array function 
Csharp :: c# alphabetize a list of string 
Csharp :: c# .net 3.5 post json httpclient 
Csharp :: priority queue c# 
Csharp :: c# Program for Sum of the digits of a given number 
Csharp :: Show private fields in Unity Inspector 
Csharp :: C# select keyword lambda 
Csharp :: c# handle single quote inside string 
Csharp :: c# loop through dictionary 
Csharp :: mvc refresh page from controller 
Csharp :: char array 
Csharp :: compact in laravrl 
Csharp :: how to make a string a list of characters c# 
Csharp :: dataannotations datetime range 
Csharp :: unity respawn 
Csharp :: conditional if statement c# programming 
Csharp :: if list does not contain then add c# 
Csharp :: set text in unity invisible 
Csharp :: reload usercontol wpf 
Csharp :: c# sum object values 
Csharp :: c# add list to list 
Csharp :: unity unit tests 
Csharp :: c# does value exist in list 
Csharp :: jagged array to 2d array c# 
Csharp :: c# $ string 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =