This commit is contained in:
2025-11-13 17:40:28 +08:00
parent 962ab49609
commit 10156da245
5503 changed files with 805282 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SliderText : MonoBehaviour
{
public Text text;
private Slider m_Slider;//Slider<65><72><EFBFBD><EFBFBD>
// Start is called before the first frame update
void Start()
{
m_Slider = GetComponent<Slider>();
m_Slider.onValueChanged.AddListener(delegate {ValueChangeCheck(); });
}
private void ValueChangeCheck()
{
text.text = m_Slider.value.ToString();
}
// Update is called once per frame
void Update()
{
}
}