Пример #1
0
    private void updateTimedEffects()
    {
        generateMonster.SpawnMonsters(calendar.getForecastWeather(0));

        //UIObject.GetComponent<WeatherUI> ().updateTemp (calendar.getForecastTemp (0));
        //UIObject.GetComponent<WeatherUI> ().updateWeatherName (calendar.getForecastWeather (0));

        //print (calendar.getCurrentDay ());
        daychangetext.text = calendar.getCurrentDay().ToString();
        seasonchange.text  = (calendar.getCurrentSeason() + 1).ToString();
        daychange.value    = calendar.getCurrentDay() - 1;

        setWeatherBasedPostProcessing();
        setWeatherBasedParticles();
        setWeatherBasedStorms();
        if (foodOwed)
        {
            MetaScript.getFoodSystem().tickDay();
        }
        foodOwed = true;
    }