protected virtual void Update() { CheckForIntensityChange(); AudioSourceLight.Update(); AudioSourceMedium.Update(); AudioSourceHeavy.Update(); }
protected virtual void Update() { if (!Application.isPlaying) { return; } UpdateExternalModifiers(); CheckForIntensityChange(); if (AudioSourceLight != null) { AudioSourceLight.Update(); } if (AudioSourceMedium != null) { AudioSourceMedium.Update(); } if (AudioSourceHeavy != null) { AudioSourceHeavy.Update(); } if (MistMaterial != null) { MistMaterial.SetFloat(WMS._ParticleDitherLevel, DitherLevel); } UpdateParticleSystemPlayState(); SetVolumeModifier(WeatherMakerAudioManagerScript.CachedWeatherVolumeModifier); }
protected virtual void Update() { CheckForIntensityChange(); AudioSourceLight.Update(); AudioSourceMedium.Update(); AudioSourceHeavy.Update(); if (MistMaterial != null) { MistMaterial.SetFloat("_ParticleDitherLevel", DitherLevel); } }