public void OnClickDedicated() { lobbyManager.ChangeTo(null); lobbyManager.StartServer(); lobbyManager.backDelegate = lobbyManager.StopServerClbk; lobbyManager.SetServerInfo("Dedicated Server", lobbyManager.networkAddress); }
public void OnClickJoin() { lobbyManager.ChangeTo(lobbyPanel); lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); }
public void OnClickJoin() { lobbyManager.ChangeTo(lobbyPanel); lobbyManager.networkAddress = ipInput.text; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; }
public void OnClickJoin() { lobbyManager.ChangeTo(lobbyPanel); lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); }
public void OnClickJoin() { //ChooseScene.SetActive (false); lobbyManager.ChangeTo(lobbyPanel); print(ipInput.text); print(Convert.HashToIP(ipInput.text)); lobbyManager.networkAddress = Convert.HashToIP(ipInput.text); lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); }
public void OnClickJoin() { lobbyManager.ChangeTo(lobbyPanel); lobbyManager.networkAddress = ipInput.text; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); m_soundManager.PlaySound(SoundManager.AudioClipList.AC_clickBtnMenu); }
public void OnClickJoin() { lobbyManager.ChangeTo(lobbyPanel); lobbyManager.networkAddress = ipInput.text; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); lobbyManager.GetComponent <NetworkDiscovery>().isClient = true; }
public void OnClickJoin() { SoundManager.instance.PlaySound(5, 1.0f, AudioType.SFX); DataManager.instance.localPlayerName = nameInput.text; lobbyManager.ChangeTo(lobbyPanel); lobbyManager.networkAddress = ipInput.text; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); }
public void OnClickJoin(LanConnectionInfo match) { NDiscovery.instance.StopDiscovery(); lobbyManager.ChangeTo(lobbyPanel); lobbyManager.networkAddress = match.ipAddress; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); }
public void OnClickJoin() { _callback = () => { NetClientSingleton.Instance.StartClient(OnReceivedBroadcast); _lobbyManager.ChangeTo(_lobbyPanel); _lobbyPanel.GetComponent <LobbyPlayerList>().Init(_lobbyManager.GameType); _lobbyManager.backDelegate = BackFromJoint; _lobbyManager.DisplayIsConnecting(); }; _gameTypeSelect.gameObject.SetActive(true); }
public void OnClickJoin() { if (achivementController.GetPlayer() != null) { lobbyManager.ChangeTo(lobbyPanel); lobbyManager.networkAddress = ipInput.text; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); } }
public void confirm() { SaveSystem.player.name = NameInput.text; SaveSystem.player.SetColor(ColorImage.color); SaveSystem.Save(); lobbyManager.ChangeTo(lobbyManager.gamesPanel); }
public void OnClickJoin(string ip) { //Change the canvas to lobby panel lobbyManager.ChangeTo(lobbyPanel); //if an ip address is called as a parameter of this method assume //that the connection should be made with this ip //if not then use the IP address typed in by the user if (ip != null) { lobbyManager.networkAddress = ip; } else { //this will retreive the text from the input field //the user can enter any ip address here. //must enter a local network IP address if on the same network lobbyManager.networkAddress = ipInput.text; } //Start a client connection lobbyManager.StartClient(); //stops the client from using callback later lobbyManager.backDelegate = lobbyManager.StopClientClbk; //show a connecting menu, so the user knows its connecting //This will fail or timeout if the ipaddress is abandoned or incorrect lobbyManager.DisplayIsConnecting(); //connect using the network address lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); }
public void OnClickJoin() { lobbyManager.ChangeTo(lobbyPanel); lobbyManager.DisplayIsConnecting(); lobbyManager.networkAddress = roomInput.text; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; }
public void OnClickJoin() { lobbyManager.ChangeTo(lobbyPanel); lobbyManager.networkAddress = ipInput.text; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); _gGame_Name.SetActive(true); _gMenu_Name.SetActive(false); _gSer_Name.SetActive(true); _gRoom_Panel.SetActive(true); _gRoom_Game_Name.SetActive(true); }
public void OnClickJoin() { lobbyManager.ChangeTo(lobbyPanel); lobbyManager.networkAddress = LobbyManager.m_selectedEnemy; lobbyManager.StartClient(); DisableMenuScene(); }
public void OnClickOpenServerList() { lobbyManager.StartMatchMaker(); lobbyManager.backDelegate = lobbyManager.SimpleBackClbk; lobbyManager.ChangeTo(lobbyServerList); previewImage_Room.sprite = null; previewImage_Room.rectTransform.sizeDelta = new Vector2(300, 300); previewMask_Room.SetActive(true); }
private IEnumerator EndMatch() { yield return(new WaitForSecondsRealtime(3)); lobbyManager.StopClient(); lobbyManager.StopHost(); lobbyManager.StopMatchMaker(); lobbyManager.ChangeTo(lobbyManager.gamesPanel); Cursor.visible = true; Destroy(gameObject); }
public void ExitToMenu() { NetworkManager.singleton.StopClient(); NetworkManager.singleton.StopHost(); NetworkManager.singleton.StopMatchMaker(); GameObject lobbyManager = GameObject.Find("LobbyManager"); Prototype.NetworkLobby.LobbyManager l = lobbyManager.GetComponent <Prototype.NetworkLobby.LobbyManager>(); l.ChangeTo(l.mainMenuPanel); }
public void OnEnable() { lobbyManager.topPanel.ToggleVisibility(true); ipInput.onEndEdit.RemoveAllListeners(); ipInput.onEndEdit.AddListener(onEndEditIP); matchNameInput.onEndEdit.RemoveAllListeners(); matchNameInput.onEndEdit.AddListener(onEndEditGameName); //mis metodos if (lobbyManager.IsClientConnected()) { Debug.Log("conectado"); lobbyManager.ChangeTo(lobbyPanel); //Debug.Log( lobbyManager._playerNumber); } else { Debug.Log("NO conectado"); } }
public void OnClickJoin() { /* * if (Time.time < lobbyManager.startTime + 45f) * { * lobbyManager.infoPanel.Display("Please wait while loading.\n" + (int)(lobbyManager.startTime + 45f - Time.time) + " seconds left.", "Close", null); + return; + } */ lobbyManager.ChangeTo(lobbyPanel); lobbyManager.minPlayers = 2; lobbyManager.maxPlayers = 5; lobbyManager.prematchCountdown = 5f; lobbyManager.networkAddress = "uriel.upnl.org"; //ipInput.text; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); }
public void OnClickJoin() { if (!MainMenuManager.isMultiplayerButtonClicked) { return; } MainMenuManager.isPlayerConnected = true; otherCanvasAnimator.Play("Host_Join"); lobbyManager.ChangeTo(lobbyPanel); if (ipInput.Equals(string.Empty)) { ipInput.text = "localhost"; } lobbyManager.networkAddress = ipInput.text; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); }
public void OnConnectToServersRegistry() { lobbyManager.backDelegate = lobbyManager.SimpleBackClbk; lobbyManager.ChangeTo(lobbyServerRegistryList); }
public void OnClick_display_match_custom() { lobbyManager.ChangeTo(lobbyManager.matchname_panel); //matchname_panel.SetActive(true); }
public void OnClickSettings() { lobbyManager.backDelegate = lobbyManager.SimpleBackClbk; lobbyManager.ChangeTo(matchSettingsPanel); }
public void OnClickPlay() { lobbyManager.ChangeTo(lobbyManager.gamesPanel); lobbyManager.backDelegate = lobbyManager.BackToMainClbk; }
public void OnClickMatchmaker() { lobbyManager.ChangeTo(matchmakerPanel); lobbyManager.backDelegate = lobbyManager.ToMainMenu; }
public void OnClickOpenServerList() { lobbyManager.StartMatchingmakingClient(); lobbyManager.ChangeTo(lobbyServerList); }
public void OnClickPrev() { lobbyManager.ChangeTo(prevHelpPanel); lobbyManager.backDelegate = lobbyManager.SimpleBackClbk; }
public void OnClickOpenServerList() { lobbyManager.StartMatchMaker(); lobbyManager.backDelegate = lobbyManager.SimpleBackClbk; lobbyManager.ChangeTo(lobbyServerList); }