Ejemplo n.º 1
0
    public void PlayerShoot()
    {
        switch (type)
        {
        case PATTERN.ONE:
            player.ShootOne();
            break;

        case PATTERN.TWO:
            player.ShootTwo();
            break;

        case PATTERN.THREE:
            player.ShootThree();
            break;

        case PATTERN.FOUR:
            player.ShootFour();
            break;
        }
        if (updateScore)
        {
            scoreSkip = (scoreSkip + 1) % 2;
            if (scoreSkip == 0)
            {
                score.Peak();
            }
        }
    }