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