예제 #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--;
 }