Exemple #1
0
 protected virtual void Update()
 {
     CheckForIntensityChange();
     AudioSourceLight.Update();
     AudioSourceMedium.Update();
     AudioSourceHeavy.Update();
 }
Exemple #2
0
        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);
     }
 }