Exemple #1
0
 public void Damage(bool isDead)
 {
     sprite.color = Color.red;
     hurt.Play();
     Invoke("Reset", .1f);
     if (isDead)
     {
         sprite.sprite     = sprites [2];
         stageFightCounter = 4;
         levelEnd.PrepareEnd();
     }
 }
 public void Damage(bool isDead)
 {
     sprite.color = Color.red;
     hurt.Play();
     Invoke("Reset", .1f);
     if (isDead)
     {
         mover.enabled     = false;
         stageFightCounter = 3;
         animator.SetBool("isDead", true);
         levelEnd.PrepareEnd();
     }
 }