- using UnityEngine;
- using System.Collections;// Quits the player when the user hits escapepublic class ExampleClass : MonoBehaviour
- {
- void Update()
- {
- if (Input.GetKey("escape"))
- {
- Application.Quit();
- }
- }
- }
Unity How To Close Game Csharp Code |
---|
|
Published: | October 29, 2022 |
Author: | admin |
Category: | Live Code |
Views: | 8 |
This article was posted in Live Code and tagged csharp. Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.
|
|