Пример #1
0
 public void connect(string ip, int port)
 {
     if (net != null)
     {
         Debug.Log("connect server : " + ip + ", port : " + port);
         net.connect(ip, port, connected);
     }
 }
Пример #2
0
 public void connect(string ip, int port)
 {
     if (net != null)
     {
         ip_   = ip;
         port_ = port;
         Debug.Log("connect server : " + ip + ", port : " + port);
         net.connect(ip, port);
     }
 }