private void ActivateAreas(int n) { for (int i = 0; i < n; i++) { UpgradeArea area = GetRandomDisabledArea(); UnitClass uClass = (UnitClass)Random.Range(0, 4); area.SetAreaClass(uClass); int turns = Random.Range(_activateAreaTime.x, _activateAreaTime.y); StartCoroutine(ActivateArea(turns, area)); _activeAreasCounter++; } }