public void Initialize(Modal_SettingsSettingEntry setting, string settingName) { Setting = setting; SettingName = settingName; _Initialize(); Initialized = true; LoadValue(); }
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); } }