Esempio n. 1
0
 public void Press()
 {
     flasher.flash(spriteRenderer);
     hitsToGoDown--;
     if (hitsToGoDown <= 0)
     {
         GoDown();
     }
 }
 public override void TakeDamage(float damage)
 {
     if (GOD_MODE)
     {
         return;
     }
     flasher.flash(spriteRenderer);
     CameraShaker.Instance.ShakeOnce(4f, 4f, .1f, .1f);
     base.TakeDamage(damage);
     SoundManager.Instance.PlayFX(SoundManager.SoundFX.PlayerGotHit);
     healthBar.fillAmount = currentHealth / startingHealth;
 }
Esempio n. 3
0
 public override void TakeDamage(float damage)
 {
     flasher.flash(spriteRenderer);
     base.TakeDamage(damage);
     healthBarImage.fillAmount = currentHealth / startingHealth;
 }