Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

stop program event in unity code

public class QuitManager : MonoBehaviour
{
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            Application.Quit();
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to change the color of your text in c# 
Csharp :: get absolute url c# 
Csharp :: c# winforms select folder dialogue 
Csharp :: get application path c# 
Csharp :: pause audio unity 
Csharp :: raycast shoot unity 
Csharp :: how to move a object in unity c# 
Csharp :: initialise icollection c# 
Csharp :: C# string format sepperate every thousand 
Csharp :: c# winform remove button border 
Csharp :: setup authorize in swagger .net core 
Csharp :: c# if debug 
Csharp :: creatw list of int in C# 
Csharp :: unity check when clicked on object 
Csharp :: unity inspector how to get larger field for string text 
Csharp :: Schema::defultString larvel 
Csharp :: how to access gameobject name 
Csharp :: get all files in all subdirectories c# 
Csharp :: unity get project file directory 
Csharp :: difference between namespace and assembly in c# 
Csharp :: custom editor unity 
Csharp :: set mouse over colors for button wpf 
Csharp :: remove all text after string c# 
Csharp :: get all devices in game unity 
Csharp :: unity keep rotating object 
Csharp :: tooltip button winform 
Csharp :: unity list to array 
Csharp :: c# datatable copy selected rows to another table 
Csharp :: c# random string 
Csharp :: how to know what object player touches unity 2D 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =