Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        controller = FindObjectOfType <ControllerInputText>();
        popUp      = FindObjectOfType <popUpScript>();

        face = 0;

        construir();
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        controllerInput           = FindObjectOfType <ControllerInputText>();
        inputField                = gameObject.GetComponent <InputField>();
        inputField.characterLimit = limiteDeCaracteres;

        inputField.onValueChanged.AddListener(delegate { checkEstadoController(); });

        switch (tipoDeInput)
        {
        case Tipo.Alfa: inputField.contentType = InputField.ContentType.Alphanumeric; break;

        case Tipo.Decimal: inputField.contentType = InputField.ContentType.DecimalNumber; DesactivarPlaceHolder(); break;

        case Tipo.Entero: inputField.contentType = InputField.ContentType.IntegerNumber; DesactivarPlaceHolder(); break;

        default: inputField.contentType = InputField.ContentType.Standard; break;
        }
    }