blob: a25560476945b53f396b232b281fb11330bd2586 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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<Graph>();
}
void Update()
{
text.text = "Function Lerp: " + graph.GetLerp().ToString("0.0");
}
}
|