/*public void Connect(String address, int port) * { * ServerConnect.Connect(address, port, (bool success, String message) => { * if (success) * { * ServerConnect.connected = false; * EnterServerTitleScreen(); * } * else * { * // TODO handle bad connect * } * }); * }*/ public void Login() { ServerConnect.SendLoginRequest(LoginUsername, LoginPassword, (bool success, String message) => { if (success) { SceneManager.LoadScene("Main"); } else { // TODO handle bad login request } }); }