예제 #1
0
    void SetSunLight(Climate.ClimateType currentClimate)
    {
        sunLight.intensity = .3f;

        if (GameManager.CurrentSceneName == "Montreal")
        {
            if (currentPeriod != DayPeriod.night)
            {
                switch (currentClimate)
                {
                case Climate.ClimateType.sunny:
                    sunLight.intensity = 1f;
                    break;

                default:
                    sunLight.intensity = .8f;
                    break;
                }
            }
            else
            {
                sunLight.intensity = .6f;
            }
        }
    }
예제 #2
0
	public void RenewCLimate(){
		Destroy(UIManager.Instance.climatePanel.transform.GetChild(0).gameObject);
		previousWeather = forecast[0].climateType;
		forecast.RemoveAt(0);

		AddClimateToForecast();
	}
예제 #3
0
    public void SetSkybox(Climate.ClimateType climateType)
    {
//		if(currentPeriod == DayPeriod.day){
//			switch(climateType){
//			case Climate.ClimateType.cloudy:
//				RenderSettings.skybox = cloudy;
//				break;
//			case Climate.ClimateType.rainy:
//				RenderSettings.skybox = rainy;
//				break;
//			case Climate.ClimateType.storm:
//				RenderSettings.skybox = stormy;
//				break;
//			case Climate.ClimateType.sunny:
//				RenderSettings.skybox = sunny;
//				break;
//			case Climate.ClimateType.snowy:
//				RenderSettings.skybox = cloudy;
//				break;
//			default:
//				break;
//			}
//		}
    }
예제 #4
0
    private string ConvertClimateTypeToString(Climate.ClimateType climateType)
    {
        string str = "Cool";

        switch (climateType)
        {
        case Climate.ClimateType.Moderate:
            str = "Moderate";
            break;

        case Climate.ClimateType.Warm:
            str = "Warm";
            break;

        case Climate.ClimateType.Tropical:
            str = "Tropical";
            break;

        case Climate.ClimateType.Dry:
            str = "Dry";
            break;
        }
        return(str);
    }
예제 #5
0
 public void RenewCLimate()
 {
     previousWeather = forecast[0].climateType;
     forecast.RemoveAt(0);
     AddClimateToForecast();
 }
예제 #6
0
 public void RenewCLimate()
 {
     previousWeather = forecast[0].climateType;
     forecast.RemoveAt(0);
     AddClimateToForecast();
 }