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); }
private void HideAllAccountPanel() { LoginOrRegisterPanel.SetActive(false); LoginPanel.SetActive(false); RegisterPanel.SetActive(false); EnternPanel.SetActive(false); }
public void ShowAccountPanel(AccountPanel type) { HideAllAccountPanel(); switch (type) { case AccountPanel.LoginOrRegister: LoginOrRegisterPanel.SetActive(true); break; case AccountPanel.Login: LoginPanel.SetActive(true); break; case AccountPanel.Register: RegisterPanel.SetActive(true); break; case AccountPanel.Disabled: EnternPanel.SetActive(true); break; } }
public void OpenRegisterPanel(bool b) { ResetInputFields(); RegisterPanel.SetActive(b); }