// Update is called once per frame
 void Update()
 {
     dragonText.text = healthBar.getHealthString();
     addPoints();
     counterBool = setCounterBool();
     setCounterColor();
     if (counter())
     {
         cancelAttack();
     }
     if (actionPoints2.getMeter() > counterWindow)
     {
         setAnimationTrigger();
         makeTimerVisible();
     }
     if (actionPoints2.isReady() && !gameOver())
     {
         doRandomAttack(nextAttack);
         actionPoints2.usePoints();
         nextAttack = getRandomAttack();
         resetAttackTimerPos();
     }
     if (timerCount == TIMER_MAX)
     {
         GameController.GetComponent <GameController>().gameOver();
     }
     else if (actionPoints.isReady())
     {
         ++timerCount;
         if (timerCount < TIMER_MAX)
         {
             powerUp();
             setTimerColor(doomsdayTimer);
         }
     }
 }
 void powerUp()
 {
     actionPoints.usePoints();
     actionPoints.getMeter(doomsdayTimer);
 }