Infinite Runner Engine v1.9
|
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...
Public Attributes | |
AudioClip | SoundClip |
The audioclip to play. More... | |
Public Attributes inherited from MoreMountains.Tools.MMPersistentHumbleSingleton< BackgroundMusic > | |
float | InitializationTime |
the timestamp at which this singleton got initialized More... | |
Protected Member Functions | |
virtual void | Start () |
Gets the AudioSource associated to that GameObject, and asks the GameManager to play it. More... | |
Protected Member Functions inherited from MoreMountains.Tools.MMPersistentHumbleSingleton< BackgroundMusic > | |
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... | |
Protected Attributes | |
AudioSource | _source |
Additional Inherited Members | |
Static Protected Attributes inherited from MoreMountains.Tools.MMPersistentHumbleSingleton< BackgroundMusic > | |
static T | _instance |
Properties inherited from MoreMountains.Tools.MMPersistentHumbleSingleton< BackgroundMusic > | |
static bool | HasInstance [get] |
whether or not this singleton already has an instance More... | |
static T | Current [get] |
static T | Instance [get] |
Singleton design pattern 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.
|
protectedvirtual |
Gets the AudioSource associated to that GameObject, and asks the GameManager to play it.
|
protected |
AudioClip MoreMountains.InfiniteRunnerEngine.BackgroundMusic.SoundClip |
The audioclip to play.