From d8cb7335b219b36d172ac25ca600ea1e5d721f8e Mon Sep 17 00:00:00 2001 From: Fangh Date: Thu, 1 Feb 2024 23:17:21 +0100 Subject: [PATCH] fix: end buttons were displayed both for first player --- Assets/Scripts/GameManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index ce3b778..0fdfada 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -393,7 +393,7 @@ private void OnNewGameState() VotePicture.SetActive(false); WaitingOtherPlayers.SetActive(false); endGameFirstPlayer.SetActive(CheckIfIAmTheFirst(myRoom.GetPlayerList())); - endGameOtherPlayers.SetActive(CheckIfIAmTheFirst(myRoom.GetPlayerList())); + endGameOtherPlayers.SetActive(!CheckIfIAmTheFirst(myRoom.GetPlayerList())); EndGame.SetActive(true); } break;