void System.IDisposable.Dispose() { mTextValue.Dispose(); mTextValue = null; mSliderValue.Dispose(); mSliderValue = null; }
public DemoUIView_ViewModel() { mTextValue = new BindablePropertyUIElement <string, UnityEngine.UI.Text>(); mSliderValue = new BindablePropertyUIElement <float, UnityEngine.UI.Slider>(); mItemValue = new BindablePropertyUIElement <UIViewTestItemValue, UnityEngine.UI.Text>(); mListValue = new BindablePropertyUIElement <List <UIViewTestItemValue>, UnityEngine.UI.ScrollRect>(); }