예제 #1
0
 public override void TakeDamage(PlayerStat player)
 {
     health -= player.GetDamage();
     if (health <= 0)
     {
         animator.SetBool("Dead", true);
         Destroy(this.gameObject, 3);
     }
 }
예제 #2
0
 public override void TakeDamage(PlayerStat player)
 {
     health -= player.GetDamage();
     if (health <= 0)
     {
         animator.Play("Fall1");
         Destroy(this.gameObject);
     }
     else
     {
         animator.Play("Hit1");
     }
 }