public void ApplyDamage(float damage) { if (is_Dead) { return; } health -= damage; if (is_Player) { player_Stats.Display_HealthStats(health); } if (is_Cannibal || is_Boar) { if (enemyController.Enemy_State == EnemyState.PATROL) { enemyController.chase_Distance = 50f; ScoreManager.score += scoreValue; //Point kill enemy enemy_Health.Display_HealthEnemy(health); } } if (health <= 0f) { PlayerDied(); is_Dead = true; } }