C# Class MusicControlScript, angrygoats

Script for controlling background music for different scenes.
Inheritance: MonoBehaviour
Show file Open project: dulb640/angrygoats Class Usage Examples

Public Properties

Property Type Description
cutsceneMusic UnityEngine.AudioClip
cutsceneScenes string[]
levelMusic UnityEngine.AudioClip
levelScenes string[]
menuMusic UnityEngine.AudioClip
menuScenes string[]

Public Methods

Method Description
Awake ( ) : void
ChangeMusicVolume ( float newValue ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
PlayMusic ( AudioClip music ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

ChangeMusicVolume() public static method

public static ChangeMusicVolume ( float newValue ) : void
newValue float
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

cutsceneMusic public property

public AudioClip,UnityEngine cutsceneMusic
return UnityEngine.AudioClip

cutsceneScenes public property

public string[] cutsceneScenes
return string[]

levelMusic public property

public AudioClip,UnityEngine levelMusic
return UnityEngine.AudioClip

levelScenes public property

public string[] levelScenes
return string[]

menuMusic public property

public AudioClip,UnityEngine menuMusic
return UnityEngine.AudioClip

menuScenes public property

public string[] menuScenes
return string[]