public void OnConnect() { string address = AddressField.text; int port; if (int.TryParse(PortField.text, out port)) { NetworkService.Connect(address, port); } }
public bool Connect() { //do something, in this case show some text on the dialog gameobject.Connect(); return(true); }
public void PlayOnline() { CurrentState = GameState.Lobby; NetworkService.Connect(); }