void Update() { if (!GetAudioSource().isPlaying) { currentList.NextMusic(); if (currentList.CurrentMusicExist()) { UpdateCurrentMusicToClip(); StartCurrentMusic(); } else if (repeat) { ResetCurrentList(); StartCurrentMusic(); } } }