// Start is called before the first frame update /// <summary> /// Before the first frame update, we create multiple variables and set their values /// including the specified cubes, a list of rhythm data to parse through, creating a time and count, /// getting the song from the file, and creating the audio source as well as creating a button manager /// </summary> void Start() { setCubes(); // startTime = Time.time; filePath = Directory.GetCurrentDirectory() + "\\Assets\\Scripts\\Music\\Alive - Mind Vortex"; rhythmData = new List <int>(); MusicFileHandler.tryRhythmData(filePath, rhythmData); time = 0; count = 0; song = new Song(Directory.GetCurrentDirectory(), "Alive", "Mind Vortex"); audioSource.PlayDelayed(delay); lengthMilli = audioSource.clip.length * 1000; manager = new ButtonSceneManager(); }
// Start is called before the first frame update void Start() { manager = new ButtonSceneManager(); }