public void OnClickDedicated()
        {
            lobbyManager.ChangeTo(null);
            lobbyManager.StartServer();

            lobbyManager.backDelegate = lobbyManager.StopServerClbk;

            lobbyManager.SetServerInfo("Dedicated Server", lobbyManager.networkAddress);
        }
Ejemplo n.º 2
0
        public void OnClickJoin()
        {
            lobbyManager.ChangeTo(lobbyPanel);
            lobbyManager.StartClient();
            lobbyManager.backDelegate = lobbyManager.StopClientClbk;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress);
        }
Ejemplo n.º 3
0
        public void OnClickJoin()
        {
            lobbyManager.ChangeTo(lobbyPanel);

            lobbyManager.networkAddress = ipInput.text;
            lobbyManager.StartClient();

            lobbyManager.backDelegate = lobbyManager.StopClientClbk;
        }
Ejemplo n.º 4
0
        public void OnClickJoin()
        {
            lobbyManager.ChangeTo(lobbyPanel);


            lobbyManager.StartClient();

            lobbyManager.backDelegate = lobbyManager.StopClientClbk;
            lobbyManager.DisplayIsConnecting();
        }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        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;
        }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
        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);
        }
Ejemplo n.º 10
0
        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);
            }
        }
Ejemplo n.º 12
0
 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);
        }
Ejemplo n.º 14
0
 public void OnClickJoin()
 {
     lobbyManager.ChangeTo(lobbyPanel);
     lobbyManager.DisplayIsConnecting();
     lobbyManager.networkAddress = roomInput.text;
     lobbyManager.StartClient();
     lobbyManager.backDelegate = lobbyManager.StopClientClbk;
 }
Ejemplo n.º 15
0
        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);
        }
Ejemplo n.º 16
0
        public void OnClickJoin()
        {
            lobbyManager.ChangeTo(lobbyPanel);

            lobbyManager.networkAddress = LobbyManager.m_selectedEnemy;
            lobbyManager.StartClient();

            DisableMenuScene();
        }
Ejemplo n.º 17
0
        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);
        }
Ejemplo n.º 18
0
        private IEnumerator EndMatch()
        {
            yield return(new WaitForSecondsRealtime(3));

            lobbyManager.StopClient();
            lobbyManager.StopHost();
            lobbyManager.StopMatchMaker();
            lobbyManager.ChangeTo(lobbyManager.gamesPanel);
            Cursor.visible = true;
            Destroy(gameObject);
        }
Ejemplo n.º 19
0
    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);
    }
Ejemplo n.º 20
0
        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");
            }
        }
Ejemplo n.º 21
0
        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);
        }
Ejemplo n.º 22
0
        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);
 }
Ejemplo n.º 24
0
 public void OnClick_display_match_custom()
 {
     lobbyManager.ChangeTo(lobbyManager.matchname_panel);
     //matchname_panel.SetActive(true);
 }
Ejemplo n.º 25
0
 public void OnClickSettings()
 {
     lobbyManager.backDelegate = lobbyManager.SimpleBackClbk;
     lobbyManager.ChangeTo(matchSettingsPanel);
 }
Ejemplo n.º 26
0
 public void OnClickPlay()
 {
     lobbyManager.ChangeTo(lobbyManager.gamesPanel);
     lobbyManager.backDelegate = lobbyManager.BackToMainClbk;
 }
Ejemplo n.º 27
0
 public void OnClickMatchmaker()
 {
     lobbyManager.ChangeTo(matchmakerPanel);
     lobbyManager.backDelegate = lobbyManager.ToMainMenu;
 }
Ejemplo n.º 28
0
 public void OnClickOpenServerList()
 {
     lobbyManager.StartMatchingmakingClient();
     lobbyManager.ChangeTo(lobbyServerList);
 }
Ejemplo n.º 29
0
 public void OnClickPrev()
 {
     lobbyManager.ChangeTo(prevHelpPanel);
     lobbyManager.backDelegate = lobbyManager.SimpleBackClbk;
 }
Ejemplo n.º 30
0
 public void OnClickOpenServerList()
 {
     lobbyManager.StartMatchMaker();
     lobbyManager.backDelegate = lobbyManager.SimpleBackClbk;
     lobbyManager.ChangeTo(lobbyServerList);
 }