@ -96,12 +96,6 @@ public List<Question> GetQuestionsByPlayer(Player player)
|
||||
return playerQuestions;
|
||||
}
|
||||
|
||||
|
||||
public void SetPlayersAreReady(int _state)
|
||||
{
|
||||
currentState = _state;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return all the propositions linked to a specific player.
|
||||
/// </summary>
|
||||
|
@ -282,7 +282,6 @@ private void JoinRoom(Action callback_OnRoomJoined)
|
||||
public void StartGame()
|
||||
{
|
||||
// send Start Game
|
||||
myRoom.SetPlayersAreReady(1);
|
||||
string JSON = JsonUtility.ToJson(myRoom);
|
||||
Debug.Log(JSON);
|
||||
try
|
||||
@ -290,7 +289,6 @@ public void StartGame()
|
||||
SendCurrentState(GameState.Explanation, () =>
|
||||
{
|
||||
Debug.Log($"start the game", this);
|
||||
myRoom.currentState = (int)GameState.Explanation;
|
||||
WaitingRoom.SetActive(false);
|
||||
BeforeStart.SetActive(true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user