From 6122b747def155369a8e75a968bf64d2d94992b0 Mon Sep 17 00:00:00 2001 From: Fangh Date: Sun, 28 Jan 2024 23:04:14 +0100 Subject: [PATCH] fix: currentQuestion => currentQuestionId --- Assets/Scripts/GameManager.cs | 4 ++-- Assets/Scripts/VotingPage.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index c4e4450..6c1ba8f 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -403,7 +403,7 @@ private void OnRoomUpdate(object sender, ValueChangedEventArgs e) { TakePicture.SetActive(false); VotePicture.SetActive(true); - myOnlineRoom.Child("currentQuestion").ValueChanged += OnCurrentQuestionChanged; + myOnlineRoom.Child("currentQuestionId").ValueChanged += OnCurrentQuestionChanged; } break; } @@ -414,7 +414,7 @@ private void OnRoomUpdate(object sender, ValueChangedEventArgs e) VotePicture.SetActive(false); WaitingOtherPlayers.SetActive(false); EndGame.SetActive(true); - myOnlineRoom.Child("currentQuestion").ValueChanged -= OnCurrentQuestionChanged; + myOnlineRoom.Child("currentQuestionId").ValueChanged -= OnCurrentQuestionChanged; } break; } diff --git a/Assets/Scripts/VotingPage.cs b/Assets/Scripts/VotingPage.cs index c857031..35fb4a7 100644 --- a/Assets/Scripts/VotingPage.cs +++ b/Assets/Scripts/VotingPage.cs @@ -77,7 +77,7 @@ public void ShowVotingPage(DatabaseReference _roomRef, Dictionary