Ejemplo n.º 1
0
    public Model()
    {
        index       = new IntReactiveProperty();
        currentData = new ReactiveProperty <Data> ();
        _datas      = new List <Data> ();

        index.Do(_ => {
            Debug.LogError("Change index");
        }).Subscribe(_ => {
            currentData.Value = _datas.ElementAtOrDefault(_);
        });
    }