Example #1
0
        private void PlayerMoveRight()
        {
            _currentlyActiveShape.MoveRight();
            _timeToNextKeyLeftRight = Time.time + keyRepeatRateLeftRight;

            if (!_gameBoard.IsValidPosition(_currentlyActiveShape))
            {
                _currentlyActiveShape.MoveLeft();
                _soundManager.PlayWrongMoveSound(0.4f);
            }
            else
            {
                _soundManager.PlayMoveSound(0.25f);
            }
        }