Ejemplo n.º 1
0
 public void OnConnectButton()
 {
     if (m_field.text.Length == 0)
     {
         m_field.text = UNNetwork.GetLocalIPAddress();
     }
     if (!UNClient.connected)
     {
         PlayerPrefs.SetString("lastIP", m_field.text);
         UNClient.Connect(m_field.text);
     }
 }
Ejemplo n.º 2
0
 public void OnDisconnectButton()
 {
     UNClient.Disconnect();
 }