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.
|
| 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.
|
| virtual void | InitializeSingleton () |
| | Initializes the singleton.
|
|
| static T | _instance |
| static bool | HasInstance [get] |
| | whether or not this singleton already has an instance
|
| static T | Current [get] |
| static T | Instance [get] |
| | Singleton design pattern.
|
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.
◆ Start()
| virtual void MoreMountains.InfiniteRunnerEngine.BackgroundMusic.Start |
( |
| ) |
|
|
protectedvirtual |
Gets the AudioSource associated to that GameObject, and asks the GameManager to play it.
◆ _source
| AudioSource MoreMountains.InfiniteRunnerEngine.BackgroundMusic._source |
|
protected |
◆ SoundClip
| AudioClip MoreMountains.InfiniteRunnerEngine.BackgroundMusic.SoundClip |
The documentation for this class was generated from the following file: