using System.Collections; using System.Collections.Generic; using UnityEngine.UI; using UnityEngine; public class ThemeSelector : MonoBehaviour { public Gradient[] themeList; public static Gradient theme; void Awake() { if (theme == null) theme = themeList[0]; } public void SelectTheme(Dropdown d) { Debug.Log($"{d.value}"); theme = themeList[d.value]; } public Gradient CurrentTheme() { return theme; } }