fix: end buttons were displayed both for first player

This commit is contained in:
Fangh 2024-02-01 23:17:21 +01:00
parent e254385459
commit d8cb7335b2

View File

@ -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;