private void OnUIChanged() { UIData = themeList.currentTheme; if (UIData != null) { FieldInfo fieldInfo = UIData.GetType().GetField(id); if (fieldInfo != null) { flexibleObjectData = fieldInfo.GetValue(UIData); if (flexibleObjectData != null) { UpdateUI(); } } } }
public void SetTheme(int i) { currentTheme = themes[i]; }