Exemple #1
0
    private void Shoot(MouseClickData data)
    {
        if (_isShooting == data.IsClicked)
        {
            return;
        }

        _isShooting = data.IsClicked;

        switch (_isShooting)
        {
        case true:
            _shootingTimer.StartTimer(_shootingSpeed);
            break;

        case false:
            _shootingTimer.StopTimer();
            break;
        }
    }