Пример #1
0
    public void SignUpSubmit()
    {
        if (string.IsNullOrEmpty(RegFullname.text) || !RegFullname.GetComponent <ValidateInput>().isValidInput)
        {
            RegFullname.GetComponent <ValidateInput>().Validate(RegFullname.text);
        }
        else if (string.IsNullOrEmpty(RegEmail.text) || !RegEmail.GetComponent <ValidateInput>().isValidInput)
        {
            RegEmail.GetComponent <ValidateInput>().Validate(RegEmail.text);
        }
        else if (string.IsNullOrEmpty(RegPhomenumber.text) || !RegPhomenumber.GetComponent <ValidateInput>().isValidInput)
        {
            RegPhomenumber.GetComponent <ValidateInput>().Validate(RegPhomenumber.text);
        }
        else
        {
            print("Signup Validate true");
            emailid     = RegEmail.text;
            fullname    = RegFullname.text;
            phonecode   = RegPhoneCode.value.ToString();
            phonenumber = RegPhomenumber.text;

            LoaderPanel.gameObject.SetActive(true);
            WebRequestObject.ProcessSignUp(fullname, phonecode, phonenumber, emailid, RegisterCallback);
        }
    }