//IDamagable Function public void TakeDamage(int damageValue) { playerCurrentHealth -= damageValue; PlayerEvents.CallPlayerTookDamage(damageValue); PlayerEvents.CallPlayerRemainingHP(playerCurrentHealth); if (playerCurrentHealth <= 0) { PlayerDies(); } }