Пример #1
0
        public void OnConnect()
        {
            string address = AddressField.text;
            int    port;

            if (int.TryParse(PortField.text, out port))
            {
                NetworkService.Connect(address, port);
            }
        }
Пример #2
0
 public bool Connect()
 {
     //do something, in this case show some text on the dialog
     gameobject.Connect();
     return(true);
 }
Пример #3
0
 public void PlayOnline()
 {
     CurrentState = GameState.Lobby;
     NetworkService.Connect();
 }