void Update() { ConnectPanel.SetActive(!isConnect); LobbyPanel.SetActive(inLobby); CreateRoomPanel.SetActive(inCreateRoom); JoinRoomPanel.SetActive(inJoinRoom); ChatPanel.SetActive(inChatRoom); if (inChatRoom == true) { if (Input.GetKeyDown(KeyCode.Return)) { SentBotton(); } if (Input.GetKeyDown(KeyCode.KeypadEnter)) { SentBotton(); } } LobbyUserName.text = "Hi ! \n{ " + myName + " }"; CreateRoomUserName.text = myName; JoinRoomUserName.text = myName; HereIs.text = "Here is... " + roomName + " !!!"; LoginPanel.SetActive(inLogin); RegisterPanel.SetActive(inRegister); RePasswordPanel.SetActive(inRePassword); }
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()); }
public void StartClient() { isHost = false; SelectModePanel.SetActive(false); JoinRoomPanel.SetActive(true); }