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/FunctionLerp.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Assets/Scripts/FunctionLerp.cs (limited to 'Assets/Scripts/FunctionLerp.cs') diff --git a/Assets/Scripts/FunctionLerp.cs b/Assets/Scripts/FunctionLerp.cs new file mode 100644 index 0000000..a255604 --- /dev/null +++ b/Assets/Scripts/FunctionLerp.cs @@ -0,0 +1,22 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; +using TMPro; + +public class FunctionLerp : MonoBehaviour +{ + public TMP_Text text; + private Graph graph; + + void Awake() + { + var gameObjectGraph = GameObject.Find("Graph"); + graph = gameObjectGraph.GetComponent(); + } + + void Update() + { + text.text = "Function Lerp: " + graph.GetLerp().ToString("0.0"); + } +} -- cgit v1.2.3