From 70b9bee50a444ed3b9babd12ac9190ad930b5d0e Mon Sep 17 00:00:00 2001 From: Fangh Date: Wed, 31 Jan 2024 23:48:09 +0100 Subject: [PATCH] fix: restarts buttons were not plugged --- Assets/Scripts/GameManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => {