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; }
public override void TakeDamage(float damage) { flasher.flash(spriteRenderer); base.TakeDamage(damage); healthBarImage.fillAmount = currentHealth / startingHealth; }