diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index 8c52a29..94f105f 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -463,7 +463,7 @@ public void onClickSamePlayers() myRoom.currentState = (int)GameState.Explanation; myRoom.questions = null; myRoom.currentQuestionId = 0; - string json = JsonUtility.ToJson(myRoom); + string json = JsonConvert.SerializeObject(myRoom); myOnlineRoom.SetRawJsonValueAsync(json).ContinueWithOnMainThread(task => { @@ -480,7 +480,7 @@ public void onClickNewPlayers() myRoom.currentQuestionId = 0; myRoom.questions = null; myRoom.players = null; - string json = JsonUtility.ToJson(myRoom); + string json = JsonConvert.SerializeObject(myRoom); myOnlineRoom.SetRawJsonValueAsync(json).ContinueWithOnMainThread(task => {