public void SetWeatherMode(WeatherMode weatherMode)
        {
            if (!m_valid)
            {
                return;
            }

            m_environmentWeather.SetWeatherMode(weatherMode);
        }
        public void SetWeatherMode(WeatherMode weatherMode)
        {
            m_active = weatherMode == WeatherMode.Rainy || weatherMode == WeatherMode.Thunderstorm;

            if (m_environmentRainView != null)
            {
                m_environmentRainView.SetActive(m_active);
            }
        }
        public void SetEnvironmentSettings(EnvironmentSettings environmentSettings)
        {
            if (environmentSettings == null)
            {
                return;
            }

            weatherMode = environmentSettings.weatherMode;
            SetWeatherMode(weatherMode);

            environmentCloudSettings     = environmentSettings.environmentCloudSettings;
            environmentLightningSettings = environmentSettings.environmentLightningSettings;

            m_environmentCloud.SetEnvironmentSettings(environmentSettings);
            m_environmentLightning.SetEnvironmentSettings(environmentSettings);
        }
Beispiel #4
0
 public void SetWeatherMode(WeatherMode weatherMode)
 {
     SetWeatherMode(weatherMode == WeatherMode.Thunderstorm);
 }
 public void SetWeatherMode(WeatherMode weatherMode)
 {
     m_environmentRain.SetWeatherMode(weatherMode);
     m_environmentLightning.SetWeatherMode(weatherMode);
 }