void createTestBeatPlanes() { m_BeatPlanes.Clear(); m_Notes.Clear(); m_CurrentBeat = 0f; // Go through each beat in the song foreach (DictionaryEntry entry in m_CurrentSong.Notes) { // New beatplane Objects.BeatPlane newBeatPlane = new Objects.BeatPlane(m_Game, m_CurrentSong); // Populate the beatplane with notes newBeatPlane.addNotesFromSong(m_CurrentSong, (float)entry.Key); // Add the beatplane to the list of beatplanes for update m_BeatPlanes.Add(entry.Key, newBeatPlane); // Spawn the beatplane SpawnGameObject(newBeatPlane); } }