Ejemplo n.º 1
0
        private void Awake()
        {
            Pseudo = new StringReactiveProperty();

            pseudoInput.onValueChanged.AsObservable().Subscribe(pseudo => Pseudo.Value = pseudo);

            //Create validate pseudo command
            ValidatePseudo = Pseudo.Select(pseudo => !string.IsNullOrEmpty(pseudoInput.text)).ToReactiveCommand <string>();

            //Validate pseudo hides the panel
            ValidatePseudo.Subscribe(OnValidatePseudo);
        }