예제 #1
0
        private void Start()
        {
            _pageTemplate     = GetComponentInChildren <Modal_SettingsPageEntry>(true);
            _categoryTemplate = GetComponentInChildren <Modal_SettingsCategoryEntry>(true);
            _changeEntry      = GetComponentInChildren <Modal_SettingsChangeEntry>(true);
            _pageTemplate.gameObject.SetActive(false);
            _categoryTemplate.gameObject.SetActive(false);
            _changeEntry.gameObject.SetActive(false);

            _saveButton.onClick.AddListener(SaveChanges);
            _cancelButton.onClick.AddListener(ClearChanges);

            CreatePages();
        }
 public override void LoadData(SettingsCategoryData data)
 {
     _categoryLabel.text = data.CategoryName;
     _page = data.Page;
     _pageButton.onClick.AddListener(ShowPage);
 }