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