fix: currentQuestion => currentQuestionId
This commit is contained in:
parent
f01d2e4227
commit
6122b747de
@ -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;
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ public void ShowVotingPage(DatabaseReference _roomRef, Dictionary<string, Player
|
||||
}
|
||||
|
||||
currentQuestion = remainingQuestions.Dequeue();
|
||||
roomRef.Child("currentQuestion").SetValueAsync(currentQuestion.index);
|
||||
roomRef.Child("currentQuestionId").SetValueAsync(currentQuestion.index);
|
||||
ShowQuestion();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user