示例#1
0
 private void Update()
 {
     if (_countdown)
     {
         _timer -= Time.deltaTime;
         _infoBar.UpdateTimer(_timer);
         if (_timer <= 0)
         {
             Unit.ActiveUnit.EndTurn();
         }
     }
 }