From e0d8634a0aaea9ce8fb4b2683c37edaae53abe3d Mon Sep 17 00:00:00 2001 From: realtradam Date: Wed, 7 Dec 2022 16:43:35 -0500 Subject: added interactive ui and customized skybox --- Assets/Scripts/FunctionSelector.cs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Assets/Scripts/FunctionSelector.cs (limited to 'Assets/Scripts/FunctionSelector.cs') diff --git a/Assets/Scripts/FunctionSelector.cs b/Assets/Scripts/FunctionSelector.cs new file mode 100644 index 0000000..b6ab1a6 --- /dev/null +++ b/Assets/Scripts/FunctionSelector.cs @@ -0,0 +1,38 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; +using TMPro; + + +public class FunctionSelector : MonoBehaviour +{ + Graph graph; + TMP_Dropdown dropdown; + + private void Awake() + { + dropdown = gameObject.GetComponent(); + var gameObjectGraph = GameObject.Find("Graph"); + graph = gameObjectGraph.GetComponent(); + } + + // Start is called before the first frame update + void Start() + { + } + + + // Update is called once per frame + void Update() + { + if(graph.IsLerping()) + { + dropdown.interactable = false; + } + else + { + dropdown.interactable = true; + } + } +} -- cgit v1.2.3