public void CreateRoomSuccess(short roomId) { this.roomId = roomId; txtRoomId.text = "ROOM " + roomId.ToString(); DisplayPlayerHostName.SetActive(true); DisplayPlayerNetworkName.SetActive(false); SelectModePanel.SetActive(false); HostWatingPanel.SetActive(true); }
public void AddNetworkPlayer(Player player) { JoinRoomPanel.SetActive(false); HostWatingPanel.SetActive(true); PlayerNetworkController.Instance.user = player; txtPlayerNetworkName.text = player.name; DisplayPlayerNetworkName.SetActive(true); buttonExitHostWaiting.SetActive(false); txtCountDown.gameObject.SetActive(true); StartCoroutine(CountDownStartGame()); }