Compare commits
No commits in common. "b0ae9e077a84a6e75f87fd58c8b66b69c1a9d367" and "3659035f0a2432d2c9c781d5296637a7afd4e052" have entirely different histories.
b0ae9e077a
...
3659035f0a
@ -20,7 +20,7 @@ public class PropositionFrame : MonoBehaviour
|
|||||||
|
|
||||||
public void Initialize(Proposition _proposition)
|
public void Initialize(Proposition _proposition)
|
||||||
{
|
{
|
||||||
Debug.Log($"Initializing {_proposition.owner.name}'s proposition", this);
|
Debug.Log($"Initializing {_proposition.owner}'s proposition", this);
|
||||||
proposition = _proposition;
|
proposition = _proposition;
|
||||||
playerName.text = proposition.owner.name;
|
playerName.text = proposition.owner.name;
|
||||||
|
|
||||||
|
@ -398,7 +398,6 @@ private void CheckPlayersPropositions()
|
|||||||
|
|
||||||
foreach (var propositionsByPlayer in propositionsPerPlayers)
|
foreach (var propositionsByPlayer in propositionsPerPlayers)
|
||||||
{
|
{
|
||||||
Debug.Log("proposition");
|
|
||||||
foreach (Proposition p in propositionsByPlayer.Value)
|
foreach (Proposition p in propositionsByPlayer.Value)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(p.photoUrl))
|
if (string.IsNullOrEmpty(p.photoUrl))
|
||||||
|
@ -40,8 +40,7 @@ private void Update()
|
|||||||
|
|
||||||
if (DateTime.Now < endOfTimer)
|
if (DateTime.Now < endOfTimer)
|
||||||
{
|
{
|
||||||
TimeSpan duration = endOfTimer - DateTime.Now;
|
timerLabel.text = (endOfTimer - DateTime.Now).TotalSeconds.ToString("D2");
|
||||||
timerLabel.text = ((int)duration.TotalSeconds).ToString("D2");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -131,9 +130,6 @@ private void OnQuestionChanged(object sender, ValueChangedEventArgs _questionRef
|
|||||||
|
|
||||||
private void UpdateVoters()
|
private void UpdateVoters()
|
||||||
{
|
{
|
||||||
if (currentQuestion.propositions.Count == 0) //manage if there is no propositons
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (currentQuestion.propositions[0] != null)
|
if (currentQuestion.propositions[0] != null)
|
||||||
{
|
{
|
||||||
List<Player> playersThatHasVotedForFirstProposition = new List<Player>();
|
List<Player> playersThatHasVotedForFirstProposition = new List<Player>();
|
||||||
|
Loading…
Reference in New Issue
Block a user