void OnLoginClick() { string account = _accountInput.text; string password = _passwordInput.text; Debug.LogFormat("UILogon::OnLoginClick:account={0},password={1}", account, password); if (password.Length < 6 && account.Length < 6) { Debug.LogError("UILogon::OnLoginClick:account or password is error, length < 6!(账号或者密码错误,长度必须大于5!)"); return; } EngineUtils.Login(account, password, System.Text.Encoding.UTF8.GetBytes("kbengine_unity3d_demo")); }