Simple wrapper for sound effects.
More...
Simple wrapper for sound effects.
◆ Init()
virtual void PlatformerPro.SoundEffect.Init |
( |
| ) |
|
|
protectedvirtual |
◆ Play()
virtual void PlatformerPro.SoundEffect.Play |
( |
| ) |
|
|
virtual |
◆ UpdateVolume()
virtual void PlatformerPro.SoundEffect.UpdateVolume |
( |
| ) |
|
|
virtual |
◆ audioSource
AudioSource PlatformerPro.SoundEffect.audioSource |
|
protected |
Cached reference to the audioSource;
◆ clip
AudioClip PlatformerPro.SoundEffect.clip |
◆ multiplyVolume
bool PlatformerPro.SoundEffect.multiplyVolume = true |
◆ originalVolume
float PlatformerPro.SoundEffect.originalVolume |
|
protected |
Store the original volume of the clip;
◆ playOnStart
bool PlatformerPro.SoundEffect.playOnStart |
Should we play the sound straight away?
The documentation for this class was generated from the following file:
- D:/Projects/platformer-pro-2019.3/Assets/PlatformerPro/Scripts/Audio/SoundEffect.cs