gradients init

This commit is contained in:
ntr committed 2022-03-31 00:12:47 +11:00
1 parent 2f0204dc45
commit a32a10afe6
11 files changed
+2439 -1702

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
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;
}
}