wip
This commit is contained in:
parent
6454b54dc6
commit
63bcb59d72
@ -505,7 +505,7 @@ public void onClickNewPlayers()
|
|||||||
|
|
||||||
private void OnCurrentQuestionChanged(object sender, ValueChangedEventArgs onlineValue)
|
private void OnCurrentQuestionChanged(object sender, ValueChangedEventArgs onlineValue)
|
||||||
{
|
{
|
||||||
if (onlineValue == null || onlineValue.Snapshot == null || onlineValue.Snapshot.Value == null)
|
if (onlineValue == null || onlineValue.Snapshot == null || onlineValue.Snapshot.Value == null || myRoom.questions == null || myRoom.questions.Count == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int questionId = onlineValue.Snapshot.Value.ConvertTo<int>();
|
int questionId = onlineValue.Snapshot.Value.ConvertTo<int>();
|
||||||
|
@ -26,6 +26,10 @@ public void Initialize(Room _myRoom, Action _onPropositionFinish)
|
|||||||
myRoom = _myRoom;
|
myRoom = _myRoom;
|
||||||
allPlayersHasProposedTwoPictures = false;
|
allPlayersHasProposedTwoPictures = false;
|
||||||
playersIdWhoHaveProposed.Clear();
|
playersIdWhoHaveProposed.Clear();
|
||||||
|
foreach(TextMeshProUGUI label in playerLabels)
|
||||||
|
{
|
||||||
|
label.color = Color.white;
|
||||||
|
}
|
||||||
|
|
||||||
ShowPlayerLabels();
|
ShowPlayerLabels();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user