Ejemplo n.º 1
0
    public void generateNewWeatherSystem()
    {
        climate = gameObject.GetComponent <Climate>();
        if (climate == null)
        {
            Debug.LogError("Error: No Climate script attached to Calendar object.");
        }
        else
        {
            climate.generateNewClimate();
            generateNewTempForecast();
        }

        weather = gameObject.GetComponent <Weather>();
        if (weather == null)
        {
            Debug.LogError("Error: No Weather script attached to Calendar object.");
        }
        else
        {
            generateNewWeatherForecast();
        }
    }