Пример #1
0
 private void Update()
 {
     if (oldTheme != currentTheme)
     {
         ForceApplyTheme();
         oldTheme = currentTheme;
     }
 }
Пример #2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            ThemeScriptable script = (ThemeScriptable)target;

            List <string> strings = new List <string>();

            foreach (ThemeComponent tc in script.themeComponents)
            {
                strings.Add(tc.name);
            }
            script.availableGroups = strings.ToArray();
        }