Created
April 8, 2021 13:23
-
-
Save silenciocorner/457b34464c0bdd48d32e4612f751783d to your computer and use it in GitHub Desktop.
BeatmapDatatypes add from MusicManager.cs script from Colin Vandervort article "FMOD Unity: Beat-Mapping"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MusicManager : MonoBehaviour | |
| { | |
| ... | |
| public TimelineInfo timelineInfo = null; | |
| private GCHandle timelineHandle; | |
| private FMOD.Studio.EVENT_CALLBACK beatCallback; | |
| private FMOD.Studio.EventDescription descriptionCallback; | |
| public FMOD.Studio.EventInstance musicPlayEvent; | |
| private void Awake() | |
| { | |
| me = this; | |
| musicPlayEvent = RuntimeManager.CreateInstance(music); | |
| musicPlayEvent.start(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment