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