using SHADE; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SHADE_Scripting.UI { public class SliderText:Script { public GameObject sliderObj; protected override void start() { Slider slider = sliderObj.GetComponent(); TextRenderable text = GetComponent(); if (slider != null && text != null) { text.Text = ((int)(slider.ScaledValue)).ToString(); } } protected override void update() { Slider slider = sliderObj.GetComponent(); TextRenderable text = GetComponent(); if(slider != null && text != null) { text.Text = ((int)(slider.ScaledValue)).ToString(); } } } }