Highroad Engine v1.3
Public Member Functions | Public Attributes | Protected Attributes | List of all members
MoreMountains.HighroadEngine.BackgroundMusic Class Reference

Add this class to a GameObject to play a background music when instanciated. Only one background music will be played at a time. More...

Inheritance diagram for MoreMountains.HighroadEngine.BackgroundMusic:

Public Member Functions

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

Public Attributes

AudioClip SoundClip
 the sound clip to play More...
 

Protected Attributes

AudioSource _source
 
SoundManager _soundManager
 

Detailed Description

Add this class to a GameObject to play a background music when instanciated. Only one background music will be played at a time.

Member Function Documentation

◆ Start()

virtual void MoreMountains.HighroadEngine.BackgroundMusic.Start ( )
virtual

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

Member Data Documentation

◆ _soundManager

SoundManager MoreMountains.HighroadEngine.BackgroundMusic._soundManager
protected

◆ _source

AudioSource MoreMountains.HighroadEngine.BackgroundMusic._source
protected

◆ SoundClip

AudioClip MoreMountains.HighroadEngine.BackgroundMusic.SoundClip

the sound clip to play


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