Esempio n. 1
0
    void Die(Attack fatalBlow)
    {
        if (options.gameJournalist)
        {
            AlerterText.Alert("<color=cyan>SECOND WIND</color>");
            SoundManager.HealSound();
            FullHeal();
            return;
        }

        AlerterText.AlertList(deathText);
        AlerterText.Alert($"<color=red>CAUSE OF DEATH:</color>");
        AlerterText.Alert($"<color=red>{fatalBlow.attackName}</color>");
        // if the animation gets interrupted or something, use this as a failsafe
        dead = true;
        SoundManager.PlayerDieSound();
        currentEnergy = 0;
        CameraShaker.Shake(0.2f, 0.1f);
        LockInSpace();
        Freeze();
        anim.SetTrigger("Die");
        anim.SetBool("TouchingWall", false);
        deathEvent.Raise();
        InterruptEverything();
        EndCombatStanceCooldown();
        ResetAttackTriggers();
    }
 void Die()
 {
     AlerterText.AlertList(deathText);
     // if the animation gets interrupted or something, use this as a failsafe
     Invoke("FinishDyingAnimation", 3f);
     this.dead = true;
     SoundManager.PlayerDieSound();
     currentEnergy = 0;
     CameraShaker.Shake(0.2f, 0.1f);
     LockInSpace();
     Freeze();
     anim.SetTrigger("Die");
     anim.SetBool("TouchingWall", false);
     InterruptEverything();
     ResetAttackTriggers();
 }
Esempio n. 3
0
 override public void Activate()
 {
     AlerterText.AlertList(this.alerts);
 }