diff --git a/Assets/Minigames/Campus quiz/Player1andPlayer2.cs b/Assets/Minigames/Campus quiz/Player1andPlayer2.cs index aae10dab4c74489d378b2a194bd3283714efa490..a5e7adac75c018347c5d037beda2efe0456daa71 100644 --- a/Assets/Minigames/Campus quiz/Player1andPlayer2.cs +++ b/Assets/Minigames/Campus quiz/Player1andPlayer2.cs @@ -498,10 +498,15 @@ namespace TeamFunctioneel if (winner == "No one (It's a tie)") { endGameText.text = "It's a tie!"; + yield return new WaitForSeconds(2f); + GameObject.FindGameObjectWithTag("GameManager").GetComponent<GameManager>().TieMinigame(); } else { endGameText.text = winner + " wins with " + winnerPoints + " points!"; + yield return new WaitForSeconds(2f); + string winnerBoardName = winner == "Player 1" ? "Blue player" : "Red player"; + GameObject.FindGameObjectWithTag("GameManager").GetComponent<GameManager>().WinMinigame(winnerBoardName); } } }