예제 #1
0
파일: MenuScreen.cs 프로젝트: Rixium/Mayday
        private void JoinServer(string ipAddress, string port)
        {
            try
            {
                _networkManager.JoinSession(ipAddress, port);
            }
            catch (Exception)
            {
                // Possibly a problem with the IP ADDRESS
                // Go straight to failed.
                OnFailedToConnect();
                return;
            }

            WaitToConnect();
        }