private void TestTCPConnect() { currentParameters.ip = ipField.text; currentParameters.port = int.Parse(portField.text); currentParameters.keepAlive = keepAliveToggle.isOn; Debug.Log("Connecting in activity in editor " + currentParameters.ip + " " + currentParameters.port + " keepAlive " + currentParameters.keepAlive); if (currentParameters.Validate()) { ConnectEngine.Instance.Connect(currentParameters); } else { Debug.LogError("Invalid connect parameters"); } }