Daisy Kim
0
Q:

application.quit() unity

using UnityEngine;
using System.Collections;// Quits the player when the user hits escapepublic class ExampleClass : MonoBehaviour
{
    void Update()
    {
        if (Input.GetKey("escape"))
        {
            Application.Quit();
        }
    }
}
12
Application.Quit();
2

New to Communities?

Join the community