예제 #1
0
 public void Initialize(Modal_SettingsSettingEntry setting, string settingName)
 {
     Setting     = setting;
     SettingName = settingName;
     _Initialize();
     Initialized = true;
     LoadValue();
 }
예제 #2
0
        public override void LoadData(SettingsPageData data)
        {
            _settingTemplate = GetComponentInChildren <Modal_SettingsSettingEntry>(true);
            _settingTemplate.gameObject.SetActive(false);

            foreach (var settingName in data.SettingNames)
            {
                var entry = _settingTemplate.Append(settingName) as Modal_SettingsSettingEntry;
                SettingsEntries.Add(entry);
            }
        }