/// <summary> Add a player to the lobby </summary> public void AddNewPlayer(int ID, string username) { if (playerUIs.ContainsKey(ID)) { Chat.Print("A play who is already connected to the lobby attempted to join!", MessageType.Default); } else { PlayerPanel playerPanel = Instantiate(playerPanelPrefab, lobbyAnchor); playerPanel.Initialized(ID, username); playerUIs.Add(ID, playerPanel); } }