public void Die() { _killCounter.AddKill(); var pos = transform.position; var rot = transform.rotation; Instantiate(DeathPoof, pos, rot); _loot.Execute(); Destroy(gameObject); }
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(); }