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;