private void NewAudioInput() { if (AudioInputs.Count >= Constants.MaxAudioInputs) { return; } AudioInputs.Add(new AudioInput()); var id = AudioInputs.Count - 1; PlayerPrefHelper.SetAudioInput(AudioInputs[id], id); if (AudioInputs.Count > (_currentPage + 1) * 10) { SetCurrentPage((AudioInputs.Count / 10) + (AudioInputs.Count % 10 == 0 ? -1 : 0)); } else { UpdateList(); } }
private bool UpdateAudioInput() { PlayerPrefHelper.SetAudioInput(_audioInput, _id); return(true); }