Beispiel #1
0
    void DoHurt(int dmg, PlayerPunch punch)
    {
        sound.playHurt();
        CamShake.AddTrauma(0.7f);

        motor.DoHurt(punch);
        healthpool -= dmg;
        healthBar.updateHealth(healthpool);
        if (healthpool <= 0)
        {
            GameController.controller.Win(4.0f);
            sound.playDeath();
            state = ChinbaldState.Dead;
            motor.DoDeath();
            player.BossDied();
        }
    }