fix: waiting 4sec instead of stopping votes directly
This commit is contained in:
parent
b03704c971
commit
9a23f40604
@ -47,13 +47,10 @@ private void Update()
|
||||
TimeSpan duration = endOfTimer - DateTime.Now;
|
||||
timerLabel.text = ((int)duration.TotalSeconds).ToString("D2");
|
||||
|
||||
if (allPlayersHaveVotedForCurrentQuestion)
|
||||
if (allPlayersHaveVotedForCurrentQuestion && endOfTimer > DateTime.Now.AddSeconds(4))
|
||||
{
|
||||
Debug.Log("All players have voted. So I put only 5sec to look at the winner.", this);
|
||||
if(endOfTimer > DateTime.Now.AddSeconds(5))
|
||||
{
|
||||
endOfTimer = DateTime.Now.AddSeconds(5);
|
||||
}
|
||||
Debug.Log("All players have voted. So I put only 4sec to look at the winner.", this);
|
||||
endOfTimer = DateTime.Now.AddSeconds(4);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user