/// <summary> Actions, that can be executed, while the game is paused </summary> private void PauseActions() { // Stop mouse following if (keys.cancel_mouse_following.IsPressed()) { UIScript.group_follows_cursor = false; } // Set dircetion via mouse if (Input.GetMouseButtonDown(0) && (Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(KeyCode.RightAlt))) { UIScript.SetDirection(); } // Camera if (keys.camera_switch.ISPressedDown()) { Globals.audio.UIPlay(UISound.camera_switch); bool is_shift = Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift); if (!is_shift) { act_cam_num = (act_cam_num + 1) % positions.Length; } Switch_Camera(act_cam_num); } // Menu if (keys.menu.ISPressedDown()) { UIScript.ToggleMenu(); } // Pause if (keys.pause.ISPressedDown()) { UIScript.Paused = !UIScript.Paused; } // Toggle map if (keys.togglemap.ISPressedDown()) { SceneGlobals.general.InMap = !SceneGlobals.general.InMap; } }