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);
|
TakePicture.SetActive(false);
|
||||||
VotePicture.SetActive(true);
|
VotePicture.SetActive(true);
|
||||||
myOnlineRoom.Child("currentQuestion").ValueChanged += OnCurrentQuestionChanged;
|
myOnlineRoom.Child("currentQuestionId").ValueChanged += OnCurrentQuestionChanged;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -414,7 +414,7 @@ private void OnRoomUpdate(object sender, ValueChangedEventArgs e)
|
|||||||
VotePicture.SetActive(false);
|
VotePicture.SetActive(false);
|
||||||
WaitingOtherPlayers.SetActive(false);
|
WaitingOtherPlayers.SetActive(false);
|
||||||
EndGame.SetActive(true);
|
EndGame.SetActive(true);
|
||||||
myOnlineRoom.Child("currentQuestion").ValueChanged -= OnCurrentQuestionChanged;
|
myOnlineRoom.Child("currentQuestionId").ValueChanged -= OnCurrentQuestionChanged;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ public void ShowVotingPage(DatabaseReference _roomRef, Dictionary<string, Player
|
|||||||
}
|
}
|
||||||
|
|
||||||
currentQuestion = remainingQuestions.Dequeue();
|
currentQuestion = remainingQuestions.Dequeue();
|
||||||
roomRef.Child("currentQuestion").SetValueAsync(currentQuestion.index);
|
roomRef.Child("currentQuestionId").SetValueAsync(currentQuestion.index);
|
||||||
ShowQuestion();
|
ShowQuestion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user