public void OpenUIGameResult(bool isWon, string playerScore) { string result; if (isWon) { result = "Won"; } else { result = "Lost"; } _gamePanel.SetGameResults(result, playerScore); _HUDPanel.gameObject.SetActive(false); _gamePanel.gameObject.SetActive(true); }