Compare commits
2 Commits
684e53d599
...
b5e8c910a2
Author | SHA1 | Date | |
---|---|---|---|
b5e8c910a2 | |||
f7a883d539 |
@ -6,6 +6,7 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
|
using Unity.VisualScripting;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -489,6 +490,17 @@ public void onClickNewPlayers()
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void OnClickProposition(int propositionNumber)
|
||||||
|
{
|
||||||
|
int currentQuestionId = Int32.Parse(myRoom.currentQuestionId);
|
||||||
|
List<string> voters = myRoom.questions[currentQuestionId].propositions[propositionNumber].voters.ToList<string>();
|
||||||
|
voters.Add(currentPlayer.id);
|
||||||
|
myOnlineRoom.Child("questions").Child(myRoom.currentQuestionId.ToString()).Child("propositions").Child(propositionNumber.ToString()).Child("voters").SetValueAsync(voters);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum GameState
|
public enum GameState
|
||||||
|
Loading…
Reference in New Issue
Block a user