Пример #1
0
    private void Rotate()
    {
        _activeShape.RotateRight();
        _timeNextRotateKey = Time.time + _timeRepeatRateRotateKey;

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