Horje Website
Unity How To Close Game Csharp Code
 
 
  1. using UnityEngine;
  2. using System.Collections;// Quits the player when the user hits escapepublic class ExampleClass : MonoBehaviour
  3. {
  4. void Update()
  5. {
  6. if (Input.GetKey("escape"))
  7. {
  8. Application.Quit();
  9. }
  10. }
  11. }
Published:
October 29, 2022
Author:
admin
Category:
Live Code
Views:
3

This article was posted in Live Code and tagged . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2022