public void LostHp(int value) { if (isDeath == 0) { AudioManager.Instance.PlayAudioByName(ClipName.PlayerHurt, transform.position); this.hp -= value; playerInfoPanel.UpdateHp(this.hp / totalHp); bsp.SetImageAlpha(this.hp / totalHp); if (this.hp <= 0) { PlayerDeath(); } } }