Ejemplo n.º 1
0
        public void OnEnable()
        {
            Time.timeScale = 1;

            lobbyManager.GetComponent <Image>().enabled = true;
            lobbyManager.topPanel.ToggleVisibility(true);
            ipInput.onEndEdit.RemoveAllListeners();
            ipInput.onEndEdit.AddListener(onEndEditIP);

            matchNameInput.onEndEdit.RemoveAllListeners();
            matchNameInput.onEndEdit.AddListener(onEndEditGameName);
        }
Ejemplo n.º 2
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;
        }