Exemple #1
0
 private void ActualizeList()
 {
     PlayerPrefHelper.SetAudioInputs(AudioInputs);
     AudioInputs.Clear();
     AudioInputs = PlayerPrefHelper.GetAudioInputs();
     if (AudioInputs.Count <= (_currentPage) * 10)
     {
         SetCurrentPage(_currentPage - 1);
         _pageNext.DisableButton();
     }
     else
     {
         SetCurrentPage(_currentPage);
     }
 }
Exemple #2
0
    public void SetAllEnable()
    {
        var currentAllEnabled = GetAllEnabled();
        var fullEnable        = true;

        if (currentAllEnabled == 1)
        {
            fullEnable = false;
        }
        foreach (var input in AudioInputs)
        {
            input.Enabled = fullEnable;
        }
        UpdateAllEnabled();
        PlayerPrefHelper.SetAudioInputs(AudioInputs);
        UpdateList();
    }