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); } }
public void OnDisconnectButton() { UNClient.Disconnect(); }