Exemple #1
0
    protected virtual void Die()
    {
        if (knockdownRoutine != null)
        {
            StopCoroutine(knockdownRoutine);
        }

        isAlive = false;
        baseAnim.SetBool("IsAlive", isAlive);
        StartCoroutine(DeathFlicker());
        PlaySFX(deathClip);
        actorCollider.SetColliderStance(false);
    }
Exemple #2
0
 protected virtual void Start()
 {
     currentLife = maxLife;
     isAlive     = true;
     baseAnim.SetBool("IsAlive", isAlive);
     actorCollider = GetComponent <ActorCollider>();
     actorCollider.SetColliderStance(true);
 }