Firstborn/Assets/Scripts/SliderValue.cs

17 lines
336 B
C#
Raw Normal View History

using System.Security.AccessControl;
using System;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using System.Collections;
using System.Collections.Generic;
public class SliderValue : MonoBehaviour
{
public GameObject TextOBJ;
public void UpdateText(float val) {
TextOBJ.GetComponent<Text>().text = val.ToString();
}
}