//------------------------------------------------------------------------------------------------ // Update is called once per frame void Update() { // Pressing the F10 key will toggle the Mouse's Locked mode and visibility. if (Input.GetKeyDown(KeyCode.F10)) { PauseUI.getInstance().cursorToggle(); } // Pressing the Escape key will toggle the pause menu. if (Input.GetKeyDown(KeyCode.Escape)) { PauseUI.getInstance().pauseToggle(); } }