Example #1
0
    private void Update()
    {
        if (Input.GetKeyUp(KeyCode.Escape))
        {
            if (_inMenu)
            {
                MyApp.Quit();
                return;
            }

            ShowMenu();
        }
    }