using System.Collections.Generic; using UnityEngine; /// /// Keep track off defined themes /// [CreateAssetMenu(menuName = "Create new Scriptable/Theme List")] public class ThemeList : ScriptableObject { /// /// Index of the active/to be loaded/current theme /// public int currentThemeIndex = 0; /// /// List of all defined themes /// public List themes = new List(); /// /// Function to find a theme-index in the list based on its index /// /// public void SetCurrentTheme(ThemeIndex index) { this.currentThemeIndex = themes.FindIndex((mi) => mi.themeIndex == index); } }