Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (_alive)
     {
         _clickTimer += Time.deltaTime;
         if (_health <= 0)
         {
             _battleController.BattleComplete();
             _alive = false;
         }
     }
 }