Add this class to a GameObject to have it play a background music when instanciated.
More...
|
| AudioClip | SoundClip |
| | the background music
|
| bool | Loop = true |
| | whether or not the music should loop
|
| int | ID = 255 |
| | the ID to create this background music with
|
|
| virtual void | Start () |
| | Gets the AudioSource associated to that GameObject, and asks the GameManager to play it.
|
Add this class to a GameObject to have it play a background music when instanciated.
◆ Start()
| virtual void MoreMountains.TopDownEngine.BackgroundMusic.Start |
( |
| ) |
|
|
protectedvirtual |
Gets the AudioSource associated to that GameObject, and asks the GameManager to play it.
◆ ID
| int MoreMountains.TopDownEngine.BackgroundMusic.ID = 255 |
the ID to create this background music with
◆ Loop
| bool MoreMountains.TopDownEngine.BackgroundMusic.Loop = true |
whether or not the music should loop
◆ SoundClip
| AudioClip MoreMountains.TopDownEngine.BackgroundMusic.SoundClip |
The documentation for this class was generated from the following file:
- H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Sound/BackgroundMusic.cs