void Awake()
 {
     scrollPositionController.OnUpdatePosition(p => UpdatePosition(p));
     SetContext(new Example03ScrollViewContext {
         OnPressedCell = OnPressedCell
     });
 }
Exemple #2
0
        void Awake()
        {
            scrollPositionController.OnUpdatePosition(p => UpdatePosition(p));
            scrollPositionController.OnItemSelected(HandleItemSelected);

            SetContext(new Example04ScrollViewContext
            {
                OnPressedCell          = OnPressedCell,
                OnSelectedIndexChanged = index =>
                {
                    if (onSelectedIndexChanged != null)
                    {
                        onSelectedIndexChanged(index);
                    }
                }
            });
        }
Exemple #3
0
        void Awake()
        {
            scrollPositionController.OnUpdatePosition(UpdatePosition);
            scrollPositionController.OnItemSelected(HandleItemSelected);

            var context = new Example04ScrollViewContext();

            context.SelectedIndex          = 0;
            context.OnPressedCell          = OnPressedCell;
            context.OnSelectedIndexChanged = index =>
            {
                if (onSelectedIndexChanged != null)
                {
                    onSelectedIndexChanged(index);
                }
            };
            SetContext(context);
        }
Exemple #4
0
 void Start()
 {
     scrollPositionController.OnUpdatePosition(UpdatePosition);
 }
Exemple #5
0
 void Start()
 {
     scrollPositionController.OnUpdatePosition(UpdatePosition);
     scrollPositionController.OnSelectedIndexChanged(UpdateSelection);
 }
 void Start()
 {
     scrollPositionController.OnUpdatePosition(p => UpdatePosition(p));
     scrollPositionController.OnSelectedIndexChanged(index => UpdateSelection(index));
 }
 void Awake()
 {
     scrollPositionController.OnUpdatePosition(UpdatePosition);
     scrollPositionController.OnItemSelected(HandleItemSelected);
 }
Exemple #8
0
 void Start()
 {
     scrollPositionController.OnUpdatePosition(p => UpdatePosition(p));
 }
 void Awake()
 {
     scrollPositionController.OnUpdatePosition(UpdatePosition);
 }
Exemple #10
0
 void Awake()
 {
     scrollPositionController.OnUpdatePosition(p => UpdatePosition(p));
 }