Example #1
0
    public override void Init()
    {
        if (_hasInit)
        {
            return;
        }
        base.Init();

        AudioInputs = PlayerPrefHelper.GetAudioInputs();
        _allEnabled = GameObject.Find("AllEnabled").GetComponent <CheckBoxBhv>();
        _listSource = GameObject.Find("ListSource").transform;
        _pageNumber = GameObject.Find("PageNumber").GetComponent <TMPro.TextMeshPro>();

        _hasInit = true;
    }
Example #2
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);
     }
 }