void Start()
        {
            mInputField = transform.Find("InputField").GetComponent <InputField>();
            mText       = transform.Find("Text").GetComponent <Text>();

            mInputField.BindTextTo(() => mText.text, text => mText.text = text);
        }
Beispiel #2
0
        void Start()
        {
            var dynamicSampleFilter = new DynamicSampleFilter <string>(TimeSpan.FromMilliseconds(500)).AddTo(TextElement);

            TextElement.BindTextTo(() => InputElement.text, dynamicSampleFilter);

            ThrottleInputElement.BindTextTo(() => dynamicSampleFilter.SampleRate.Value.TotalMilliseconds.ToString(),
                                            UpdateThrottleValue(dynamicSampleFilter));
        }
 void Start()
 {
     InputElement.BindTextTo(ReactiveInt);
     Observable.Interval(TimeSpan.FromSeconds(1)).Subscribe(x => ReactiveInt.Value += 1);
 }