Beispiel #1
0
        protected virtual void tryShooting()
        {
            RhythmAccuracy acc = melodyModule.Activate();

            switch (acc)
            {
            case RhythmAccuracy.Full:
                hudManager.ShotRating.SendMessage("CheckAccuracyDisplay", RhythmAccuracy.Full);
                Shoot();
                break;

            case RhythmAccuracy.Partial:
                hudManager.ShotRating.SendMessage("CheckAccuracyDisplay", RhythmAccuracy.Partial);
                Shoot();
                break;

            case RhythmAccuracy.Miss:
                hudManager.ShotRating.SendMessage("CheckAccuracyDisplay", RhythmAccuracy.Miss);
                break;
            }
        }
Beispiel #2
0
    public void CheckAccuracyDisplay(RhythmAccuracy Accuracy)
    {
        if (lastAccuracy != Accuracy)
        {
            lastAccuracy = Accuracy;
            switch (Accuracy)
            {
            case RhythmAccuracy.Full:
                ChangeSprite(goodImage);
                break;

            case RhythmAccuracy.Partial:
                ChangeSprite(mediumImage);
                break;

            case RhythmAccuracy.Miss:
                ChangeSprite(badImage);
                break;
            }
        }
        TryChangingSize();
    }
Beispiel #3
0
        protected virtual void tryCharging()
        {
            RhythmAccuracy acc = chargeModule.Activate();

            switch (acc)
            {
            case RhythmAccuracy.Full:
                hudManager.ChargeRating.SendMessage("CheckAccuracyDisplay", RhythmAccuracy.Full);
                power += fullCharge;
                break;

            case RhythmAccuracy.Partial:
                hudManager.ChargeRating.SendMessage("CheckAccuracyDisplay", RhythmAccuracy.Partial);
                power += partialCharge;
                break;

            case RhythmAccuracy.Miss:
                hudManager.ChargeRating.SendMessage("CheckAccuracyDisplay", RhythmAccuracy.Miss);
                power *= missChargeMultiplier;
                power -= missChargeSubtractor;
                break;
            }
        }
Beispiel #4
0
        protected override void tryShooting()
        {
            RhythmAccuracy acc = powerShotModule.Activate();

            switch (acc)
            {
            case RhythmAccuracy.Full:
                hudManager.ShotRating.SendMessage("CheckAccuracyDisplay", RhythmAccuracy.Full);
                Shoot();
                power -= shootingCost;
                break;

            case RhythmAccuracy.Partial:
                hudManager.ShotRating.SendMessage("CheckAccuracyDisplay", RhythmAccuracy.Partial);
                Shoot();
                power -= shootingCost;
                break;

            case RhythmAccuracy.Miss:
                power -= missShootingCost;
                hudManager.ShotRating.SendMessage("CheckAccuracyDisplay", RhythmAccuracy.Miss);
                break;
            }
        }