Ejemplo n.º 1
0
    /* ====== Movement functions ====== */

    /* Control the movement of listBoxes
     */
    private void Update()
    {
        if (!_movementCtrl.IsMovementEnded())
        {
            var distance = _movementCtrl.GetDistance(Time.deltaTime);
            foreach (ListBox listBox in listBoxes)
            {
                listBox.UpdatePosition(distance);
            }
        }
    }
Ejemplo n.º 2
0
        /// <summary>
        /// Update the position of the boxes
        /// </summary>
        public void Update()
        {
            if (_movementCtrl.IsMovementEnded())
            {
                return;
            }

            var distance = _movementCtrl.GetDistance(Time.deltaTime);

            foreach (var listBox in _listBoxes)
            {
                listBox.UpdatePosition(distance);
            }
        }