// Update is called once per frame void Update() { if (enemyPumpkinManager.currentHealth <= 0) { playerManagerBackup.setVictory(); victoryCondition.enabled = false; } }
// Update is called once per frame void Update() { healthSlider.value = currentHealth; if (currentHealth <= 0) { playerManagerBackup.setVictory(); victoryCondition.enabled = false; } }