void OnLogon() { if (username.text == "" || password.text == "") { return; } logonRequest?.SendRequest(username.text, password.text); }
private void OnLogonClick() { if (username.text == "" || password.text == "") { Debug.Log("用户名或密码不能为空"); } else { Debug.Log("点击注册"); logonRequest.SendRequest(username.text, password.text); } }