fix: page vote wasn't displayed if you were on waiting for other players

This commit is contained in:
Fangh 2024-01-29 20:54:35 +01:00
parent 489102c948
commit 274d4cc3dc

View File

@ -349,8 +349,9 @@ private void OnRoomUpdate(object sender, ValueChangedEventArgs e)
} }
case (int)GameState.MakeVote: case (int)GameState.MakeVote:
{ {
if (TakePicture.activeInHierarchy) if (TakePicture.activeInHierarchy || WaitingOtherPlayers.activeInHierarchy)
{ {
WaitingOtherPlayers.SetActive(false);
TakePicture.SetActive(false); TakePicture.SetActive(false);
VotePicture.SetActive(true); VotePicture.SetActive(true);
myOnlineRoom.Child("currentQuestionId").ValueChanged += OnCurrentQuestionChanged; myOnlineRoom.Child("currentQuestionId").ValueChanged += OnCurrentQuestionChanged;