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

        if (currentHealth <= 0)
        {
            playerManagerBackup.setVictory();

            victoryCondition.enabled = false;
        }
    }