TopDown Engine  v4.2
MoreMountains.TopDownEngine.BackgroundMusic Class Reference

Add this class to a GameObject to have it play a background music when instanciated. More...

Inheritance diagram for MoreMountains.TopDownEngine.BackgroundMusic:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Public Attributes

AudioClip SoundClip
 the background music More...
 
bool Loop = true
 whether or not the music should loop More...
 
int ID = 255
 the ID to create this background music with More...
 

Protected Member Functions

virtual void Start ()
 Gets the AudioSource associated to that GameObject, and asks the GameManager to play it. More...
 

Detailed Description

Add this class to a GameObject to have it play a background music when instanciated.

Member Function Documentation

◆ Start()

virtual void MoreMountains.TopDownEngine.BackgroundMusic.Start ( )
protectedvirtual

Gets the AudioSource associated to that GameObject, and asks the GameManager to play it.

Member Data Documentation

◆ 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 background music


The documentation for this class was generated from the following file: