fix: end buttons were displayed both for first player
This commit is contained in:
parent
e254385459
commit
d8cb7335b2
@ -393,7 +393,7 @@ private void OnNewGameState()
|
|||||||
VotePicture.SetActive(false);
|
VotePicture.SetActive(false);
|
||||||
WaitingOtherPlayers.SetActive(false);
|
WaitingOtherPlayers.SetActive(false);
|
||||||
endGameFirstPlayer.SetActive(CheckIfIAmTheFirst(myRoom.GetPlayerList()));
|
endGameFirstPlayer.SetActive(CheckIfIAmTheFirst(myRoom.GetPlayerList()));
|
||||||
endGameOtherPlayers.SetActive(CheckIfIAmTheFirst(myRoom.GetPlayerList()));
|
endGameOtherPlayers.SetActive(!CheckIfIAmTheFirst(myRoom.GetPlayerList()));
|
||||||
EndGame.SetActive(true);
|
EndGame.SetActive(true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user