Answers for "stop program event in unity code"

C#
1

stop program event in unity code

public class QuitManager : MonoBehaviour
{
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            Application.Quit();
        }
    }
}
Posted by: Guest on March-24-2022

C# Answers by Framework

Browse Popular Code Answers by Language