Files
kaiju/Assets/ThemeSelector.cs
T
2022-03-31 00:12:47 +11:00

23 lines
497 B
C#

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;
}
}