From b04804c6775646dc6f69aa22fb8b5ac8f15b0747 Mon Sep 17 00:00:00 2001 From: Marine Date: Sun, 28 Jan 2024 02:10:40 +0100 Subject: [PATCH] fix: have preivous players --- Assets/Scripts/GameManager.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index fd32751..a291b06 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -157,12 +157,6 @@ public void PlayerValidateNameAndServerRoom(string _name, string _code) WaitingRoom.SetActive(true); HomeConnection.SetActive(false); - List list = new List - { - currentPlayer - }; - - UpdateDisplayedListUser(list); }); } }); @@ -303,7 +297,6 @@ private void OnRoomUpdate(object sender, ValueChangedEventArgs e) if (e?.Snapshot?.GetRawJsonValue() != null) { string JSON = e.Snapshot.GetRawJsonValue(); - Debug.Log($"your room has been updated :\n{JSON}"); myRoom = JsonConvert.DeserializeObject(e.Snapshot.GetRawJsonValue()); } @@ -321,8 +314,6 @@ private void OnRoomUpdate(object sender, ValueChangedEventArgs e) { case (int)GameState.WaitingForOtherPlayersToJoin: { - Debug.Log("update player List"); - Debug.Log(myRoom.GetPlayerList()); CheckIfIAmTheFirst(myRoom.GetPlayerList()); UpdateDisplayedListUser(myRoom.GetPlayerList()); break;