Simple script that plays a sound once a method is called. Useful for sounds happening on UI button clicks.
More...
|
virtual void | PlaySound () |
| Play button sound once. More...
|
|
virtual void | PlaySound (bool activated) |
| Play button sound once. This overload is useful for toggle groups. More...
|
|
Simple script that plays a sound once a method is called. Useful for sounds happening on UI button clicks.
virtual void ButtonSound.PlaySound |
( |
| ) |
|
|
virtual |
virtual void ButtonSound.PlaySound |
( |
bool |
activated | ) |
|
|
virtual |
Play button sound once. This overload is useful for toggle groups.
- Parameters
-
play | If the sound should be played. This method does nothing if false is passed. |
string ButtonSound.audioSourceContainerName = "SoundFX" |
Name of GameObject holding an AudioSource for sound effects.
AudioClip ButtonSound.sound |
The documentation for this class was generated from the following file:
- /Users/max/Dev/projects/ParseTheSky/FlightKit_Unity/Assets/FlightKit/FlightKit/Scripts/UI/ButtonSound.cs