Example #1
0
    public void EndTurn()
    {
        ++Day;

        CalculateCash();
        CalculatePopulation();
        CalculateJob();
        CalculateFood();

        _uiController.UpdateCityData();
        _uiController.UpdateDayCount();
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     _uiController     = GetComponent <CUIController>();
     Cash              = 1000;
     Food              = 0.0f;
     JobsCeiling       = 0.0f;
     buildingCounts[0] = 0;
     buildingCounts[1] = 0;
     buildingCounts[2] = 0;
     buildingCounts[3] = 0;
     _uiController.UpdateCityData();
     _uiController.UpdateDayCount();
 }