Beispiel #1
0
 public void OnRegisterButton()
 {
     hintText.text            = "";
     registerRequest.username = usernameIF.text;
     registerRequest.password = passwordIF.text;
     registerRequest.gender   = sliderValue[genderDrop.value];
     if (usernameIF.text == "" || passwordIF.text == "" || passwordIF2.text == "")
     {
         hintText.text = "内容不能为空!";
     }
     //不为空
     else
     {
         //没有任何格式问题
         if (passwordIF.text == passwordIF2.text)
         {
             registerRequest.DefaultRequse();
         }
         else
         {
             hintText.text = "两次密码输入不一样!";
         }
     }
 }