Ejemplo n.º 1
0
    public void LimparFormCadastro()
    {
        socialId  = string.Empty;
        tipoLogin = "******";
        TxtEmailCadastro.interactable = true;
        TxtNomeCadastro.interactable  = true;
        TxtSenhaCadastro.gameObject.SetActive(true);
        TxtSenhaCadastroConfirm.gameObject.SetActive(true);

        TxtEmailCadastro.text        = string.Empty;
        TxtSenhaCadastro.text        = string.Empty;
        TxtSenhaCadastroConfirm.text = string.Empty;
        TxtApelidoCadastro.text      = string.Empty;
        TxtNomeCadastro.text         = string.Empty;
        TxtCPFCadastro.text          = string.Empty;
        TxtDataNascCadastro.text     = string.Empty;

        TxtEmailCadastro.GetComponent <InputRequired>().AtivarDesativarAlerta(false);
        TxtSenhaCadastro.GetComponent <InputRequired>().AtivarDesativarAlerta(false);
        TxtSenhaCadastroConfirm.GetComponent <InputRequired>().AtivarDesativarAlerta(false);
        TxtApelidoCadastro.GetComponent <InputRequired>().AtivarDesativarAlerta(false);
        TxtNomeCadastro.GetComponent <InputRequired>().AtivarDesativarAlerta(false);
        TxtCPFCadastro.GetComponent <InputRequired>().AtivarDesativarAlerta(false);
        TxtDataNascCadastro.GetComponent <InputRequired>().AtivarDesativarAlerta(false);

        BtnSexoMasc.isOn = true;
        BtnSexoFem.isOn  = false;

        PnlAvatar.PreencherInfo("Masculino", null);

        fbManager.LogoutFacebook();
    }