Пример #1
0
 public void StartClient()
 {
     client          = new InteroClientTCP();
     client.username = "******";
     client.Connect(8080);
     print("Connecting to Server");
 }
Пример #2
0
 public void StartClient()
 {
     client          = new InteroClientTCP();
     client.username = nameText.text;
     ergSimulator.SetPace(speedText.text);
     try
     {
         print(" Starting client ");
         client.Connect(8080);
         print(" End client ");
     }
     catch (Exception e)
     {
         print(" fv " + e.Message);
     }
 }
Пример #3
0
 public void StartClient(string username)
 {
     if (client != null)
     {
         client.OnDestroy();
     }
     client          = new InteroClientTCP();
     client.username = username;
     ergSimulator.SetPace("120");
     try
     {
         client.Connect(8080);
     } catch (Exception e)
     {
         print(" fv " + e.Message);
     }
 }