示例#1
0
 public void BossTakeDamage()
 {
     if (canTakeDamage)
     {
         bossLife--;
         bossLifeDisplay.value = bossLife;
         bossLifeText.text     = bossLife + "/50";
         if (bossLife == 0)
         {
             bossIsDead               = true;
             LoadLevel.bossLevel      = false;
             loadLevel.gotCollectable = true;
             healthBar.SetActive(false);
             loadLevel.Win();
         }
     }
 }