fix: page vote wasn't displayed if you were on waiting for other players
This commit is contained in:
parent
489102c948
commit
274d4cc3dc
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user