Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity how to end a game with esc

void Update()
{
    if (Input.GetKey(KeyCode.Escape))
    {
        Application.Quit();
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity how to rotate something to point to something else 
Csharp :: check if network is available c# 
Csharp :: how to change scenes in unity 
Csharp :: unity camera follow 
Csharp :: c# filter non alphanumeric characters 
Csharp :: Oculus Unity add haptics 
Csharp :: aabb collision with direction 
Csharp :: stopwatch c# 
Csharp :: unity 3d sound 
Csharp :: no move arrows unity 
Csharp :: c# loop 
Csharp :: set label position winforms 
Csharp :: remove all letters from string c# 
Csharp :: pass datatable to stored procedure c# dapper 
Csharp :: how is c# pronounced 
Csharp :: unity3d random 
Csharp :: c# list join 
Csharp :: c# console play sound 
Csharp :: unity keycode 
Csharp :: unity print name of button when click on it 
Csharp :: prettier inst working c# 
Csharp :: how to encode and decode a string in c# 
Csharp :: video gets pixelated unity 
Csharp :: c# display float with 2 decimal places 
Csharp :: pyqt qtableview get selected row data 
Csharp :: convert int to short c# 
Csharp :: get working directory c# 
Csharp :: memset alternative in c# 
Csharp :: c# split on multiple characters 
Csharp :: how to make multiplayer game in unity 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =