/// <summary> /// Handle the input during the end of the game. Any interaction /// will result in it reading in the highsSwinGame. /// </summary> public static void HandleEndOfGameInput() { if (SwinGame.MouseClicked(MouseButton.LeftButton) || SwinGame.KeyTyped(KeyCode.ReturnKey) || SwinGame.KeyTyped(KeyCode.EscapeKey)) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score); GameController.EndCurrentState(); } }
/// <summary> /// Handle the input during the end of the game. Any interaction /// will result in it reading in the highsSwinGame. /// </summary> public static void HandleEndOfGameInput() { if (SwinGame.MouseClicked(MouseButton.LeftButton) || SwinGame.KeyTyped(KeyCode.vk_RETURN) || SwinGame.KeyTyped(UtilityFunctions.EscapeKey)) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score); HighScoreController.SaveScores(); GameController.EndCurrentState(); } }