private void RefreshSounds() { this.CollectSounds = new SoundEffect[8]; TrackedSong currentlyPlayingSong = this.SoundManager.CurrentlyPlayingSong; ShardNotes[] shardNotesArray; if (currentlyPlayingSong != null) { shardNotesArray = currentlyPlayingSong.Notes; } else { shardNotesArray = new ShardNotes[8] { ShardNotes.C2, ShardNotes.D2, ShardNotes.E2, ShardNotes.F2, ShardNotes.G2, ShardNotes.A2, ShardNotes.B2, ShardNotes.C3 } }; for (int index = 0; index < shardNotesArray.Length; ++index) { this.CollectSounds[index] = this.CMProvider.CurrentLevel.Load <SoundEffect>("Sounds/Collects/SplitUpCube/" + (object)shardNotesArray[index]); } }
private void RefreshSounds() { this.CollectSounds = new SoundEffect[8]; TrackedSong currentlyPlayingSong = this.SoundManager.CurrentlyPlayingSong; ShardNotes[] shardNotesArray; if (currentlyPlayingSong != null) shardNotesArray = currentlyPlayingSong.Notes; else shardNotesArray = new ShardNotes[8] { ShardNotes.C2, ShardNotes.D2, ShardNotes.E2, ShardNotes.F2, ShardNotes.G2, ShardNotes.A2, ShardNotes.B2, ShardNotes.C3 }; for (int index = 0; index < shardNotesArray.Length; ++index) this.CollectSounds[index] = this.CMProvider.CurrentLevel.Load<SoundEffect>("Sounds/Collects/SplitUpCube/" + (object) shardNotesArray[index]); }