public void PlayWeather(string weatherName, System.Action completeCallback = null) { Stop(); WeatherName = weatherName; WeatherControlData data = GetWeatherControlData(weatherName); data.EnableBehaviours(true); Particle.InitData(data.ParticleData, this.transform); GlobalProperty.InitData(data.GlobalPropertyData); Skybox.InitData(data.SkyboxData); Ambient.InitData(data.AmbientData, data.TimeData, m_weatherEffect, m_mainLight); m_coroutine = StartCoroutine(PlayWeather_Coroutine(completeCallback)); }