Add this class to a GameObject to have it play a background music when instanciated. Careful : only one background music will be played at a time.
More...
|
virtual void | Start () |
| Gets the AudioSource associated to that GameObject, and asks the GameManager to play it. More...
|
|
virtual void | Awake () |
| On awake, we check if there's already a copy of the object in the scene. If there's one, we destroy it. More...
|
|
virtual void | InitializeSingleton () |
| Initializes the singleton. More...
|
|
Add this class to a GameObject to have it play a background music when instanciated. Careful : only one background music will be played at a time.
◆ InitializeStatics()
static void MoreMountains.CorgiEngine.BackgroundMusic.InitializeStatics |
( |
| ) |
|
|
staticprotected |
Statics initialization to support enter play modes
◆ Start()
virtual void MoreMountains.CorgiEngine.BackgroundMusic.Start |
( |
| ) |
|
|
protectedvirtual |
Gets the AudioSource associated to that GameObject, and asks the GameManager to play it.
◆ _source
AudioSource MoreMountains.CorgiEngine.BackgroundMusic._source |
|
protected |
◆ ID
int MoreMountains.CorgiEngine.BackgroundMusic.ID = 255 |
the ID to create this background music with
◆ Loop
bool MoreMountains.CorgiEngine.BackgroundMusic.Loop = true |
whether or not the music should loop
◆ SoundClip
AudioClip MoreMountains.CorgiEngine.BackgroundMusic.SoundClip |
the background music audio clip to play
The documentation for this class was generated from the following file: