gradients init
This commit is contained in:
1 parent
2f0204dc45
commit
a32a10afe6
11 files changed
+2439
-1702
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user