private void Awake() { instance = this; //LoadLevel(LevelToLoad); EnterLevel(LevelToLoad, 0); BeatManager.Initialise(); BeatManager.bpm = bpm; BeatManager.ticksPerBeat = ticksPerBeat; BeatManager.LoadSong(); }
private void Update() { BeatManager.Update(); if (Input.GetKeyDown(KeyCode.R)) { //Shift+R to load LevelToLoad, R alone to reload current level. if (Input.GetKey(KeyCode.LeftShift)) { LoadLevel(LevelToLoad, false); BeatManager.bpm = bpm; BeatManager.ticksPerBeat = ticksPerBeat; BeatManager.LoadSong(); } else { LoadLevel(loadedLevel.name, true); BeatManager.bpm = bpm; BeatManager.ticksPerBeat = ticksPerBeat; BeatManager.LoadSong(); } } }