示例#1
0
 private void Update()
 {
     if (GameControl.instance.isGameOver == false && GameControl.instance.isPaused == false)
     {
         hp.Update();
         float currHp = hp.GetHpNormalized();
         barImage.fillAmount = currHp;
         if (currHp <= 0f)
         {
             GameControl.instance.pauseGame();
         }
     }
 }