UserInput.OnGUI C# (CSharp) Метод

OnGUI() приватный Метод

private OnGUI ( ) : void
Результат void
    private void OnGUI()
    {
        if(isPaused){ //Modo pausa activado
            // Boton para seguir el juego, "despausarlo"
            if(GUI.Button(new Rect(Screen.width / 2 - 60, Screen.height / 2 - 60, 100, 40), "Continue")){
                isPaused = !isPaused;
            }
            // Boton para volver al menu principal
            if(GUI.Button(new Rect(Screen.width / 2 - 60, Screen.height / 2 + 00, 100, 40), "Main Menu")){
                Application.LoadLevel("menu");
            }
            //Boton para quitar el juego
            if(GUI.Button(new Rect(Screen.width / 2 - 60, Screen.height / 2 + 60, 100, 40), "Quit Game")){
                Application.Quit();
            }
        }
    }