public void AddTrack(MusicBoxTrack track) { for (int x = 0; x < MusicBoxComponent.SONGS; x++) { if (track.Song == MusicBoxComponent.Songs[x]) { m_HasTrack[x] = true; track.Delete(); } } }
public void AddTrack(MusicBoxTrack track) { if (track == null) { return; } for (int x = 0; x < MusicBox.SONGS; x++) { if (track.Song == MusicBox.Songs[x]) { m_HasTrack[x] = true; } } track.Delete(); }
public void Target(MusicBoxTrack target) { for (int x = 0; x < MusicBox.SONGS; x++) { if (target.Song == MusicBox.Songs[x]) { if (!m_Box.HasTrack[x]) { m_Box.HasTrack[x] = true; target.Delete(); m_From.SendMessage("Song successfully added."); } else { m_From.SendMessage("That song is already added."); } } } }
public void Target(MusicBoxTrack target) { for (int x = 0; x < MusicBox.SONGS; x++) { if (target.Song == MusicBox.Songs[x]) { if (!m_Box.HasTrack[x]) { m_Box.HasTrack[x] = true; target.Delete(); m_From.SendMessage("Song successfully added."); } else m_From.SendMessage("That song is already added."); } } }