public override void TakeDamage(float damage) { base.TakeDamage(damage); hpBar.ChangeHitbarScale(healthPoint / maxHealth); if (healthPoint <= 0) { DeadTransition(); } }
public override void TakeDamage(float damage) { base.TakeDamage(damage); hpBar.ChangeHitbarScale(healthPoint / maxHealth); if (healthPoint <= 0) { Selection.instance.moveEvent -= Move; Destroy(hpBar.gameObject); Die(); } }