Пример #1
0
 void LateUpdate()
 {
     // this disables countdown while screen is hidden
     if (bossIsActive && !screenIsHidden)
     {
         // start countdown to game over
         if (!counting)
         {
             counting = true;
             bm.StartCountdown();
         }
     }
     else
     {
         bm.StopCountdown();
         counting = false;
     }
 }