void Start() { song = MidiParser.readMidi("Assets/Resources/Songs/HotCrossBunsLow.mid"); songBackground = Resources.Load <AudioClip>("Songs/Megalovania"); audio.clip = songBackground; audio.Play(); SongSetup songSetup = gameObject.GetComponent <SongSetup>(); lanes = songSetup.setupLanes(); songStartTime = Time.time; }
void Start() { if (!InputSettings.initalized) { InputSettings.setToDefault(); } song = songSetup.readSong("HotCrossBunsLow"); backgroundMusic.clip = song.backgroundTrack; backgroundMusic.Play(); instrument.clip = song.instrumentSample; lanes = songSetup.setupLanes(); songStartTime = Time.time; }