Пример #1
0
    private void MoveLeft()
    {
        _activeShape.MoveLeft();
        _timeNextLeftKey = Time.time + _timeRepeatRateLeftKey;

        if (!_backgroundGrid.IsValidPosition(_activeShape))
        {
            _activeShape.MoveRight();
            PlaySound(_audioManager.errorSound, 0.35f);
        }
        else
        {
            PlaySound(_audioManager.moveSound, 0.25f);
        }
    }