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; } } }
public void RenewCLimate(){ Destroy(UIManager.Instance.climatePanel.transform.GetChild(0).gameObject); previousWeather = forecast[0].climateType; forecast.RemoveAt(0); AddClimateToForecast(); }
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; // } // } }
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); }
public void RenewCLimate() { previousWeather = forecast[0].climateType; forecast.RemoveAt(0); AddClimateToForecast(); }
public void RenewCLimate() { previousWeather = forecast[0].climateType; forecast.RemoveAt(0); AddClimateToForecast(); }