This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
UDBase.Controllers.MusicSystem
KonH edited this page Feb 23, 2018
·
1 revision
IMusic is a music playing system. It doesn't provide methods to play, because by default it controlled by MusicHolder on scene.
public interface UDBase.Controllers.MusicSystem.IMusic
Methods
Type | Name | Summary |
---|---|---|
void |
Pause() | Pause current track |
void |
UnPause() | Resume current track |
Default music controller. For use it, you need to add to scene where you need music MusicHolder with assigned list of SoundSource, represented wanted music tracks.
public class UDBase.Controllers.MusicSystem.MusicController
: IMusic
Methods
Type | Name | Summary |
---|---|---|
void |
Pause() | |
void |
UnPause() |
MusicHolder is a set of music for the scene
public class UDBase.Controllers.MusicSystem.MusicHolder
: MonoBehaviour
Fields
Type | Name | Summary |
---|---|---|
List<SoundSource> |
Sources | All tracks for scene, on of it selected randomly on scene start |
Utility class for playing music
public class UDBase.Controllers.MusicSystem.MusicUtility
: MonoBehaviour
Methods
Type | Name | Summary |
---|---|---|
void |
Pause() | |
void |
SetupTrack() | |
void |
StopTrack() | |
void |
UnPause() |