Example #1
0
    // Update is called once per frame
    void Update()
    {
        energyManager = FindObjectOfType <EnergyManager>();
        if (gameHasBegun)
        {
            //Debug.Log("Continue Time Cycle Bool: " + continueTimeCycle);
            if (continueTimeCycle)
            {
                MinusDays();
            }



            if (energyManager == null)
            {
                Debug.Log("Energy Manager Catch");
            }

            if (DaysUntilReElection == 0)
            {
                ReElectionDecision();
            }

            energyManager.GenerateSolarEnergy();
            citizenManager.AddNewCitizens();
        }
    }