From 274d4cc3dc5d0b1cd4e3de320514c48b6997f097 Mon Sep 17 00:00:00 2001 From: Fangh Date: Mon, 29 Jan 2024 20:54:35 +0100 Subject: [PATCH] fix: page vote wasn't displayed if you were on waiting for other players --- Assets/Scripts/GameManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index 2ecf8f9..3d6ccc6 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -349,8 +349,9 @@ private void OnRoomUpdate(object sender, ValueChangedEventArgs e) } case (int)GameState.MakeVote: { - if (TakePicture.activeInHierarchy) + if (TakePicture.activeInHierarchy || WaitingOtherPlayers.activeInHierarchy) { + WaitingOtherPlayers.SetActive(false); TakePicture.SetActive(false); VotePicture.SetActive(true); myOnlineRoom.Child("currentQuestionId").ValueChanged += OnCurrentQuestionChanged;