Пример #1
0
    private IEnumerator ActivateArea(int turns, UpgradeArea area)
    {
        int activatingTurn = _currentTurn + turns;

        while (_currentTurn < activatingTurn)
        {
            yield return(null);
        }

        area.EnableArea(true);
    }
Пример #2
0
 public void DisableArea(UpgradeArea area)
 {
     area.EnableArea(false);
     _activeAreasCounter--;
 }