示例#1
0
    public void Die()
    {
        _killCounter.AddKill();
        var pos = transform.position;
        var rot = transform.rotation;

        Instantiate(DeathPoof, pos, rot);
        _loot.Execute();
        Destroy(gameObject);
    }
示例#2
0
 public void Die()
 {
     _bossAnimator.SetBool(IsDead, true);
     StopFollowing();
     GetComponent <CapsuleCollider>().enabled = false;
     _bossState = BossState.Die;
     _bossAnimator.SetTrigger(Death);
     _bossAnimator.SetBool(IsDizzy, false);
     isDead = true;
     _killCounter.AddKill();
 }