Доделал настройку скорости, добавил иконки на катушки с материалом
This commit is contained in:
1 parent
a3cccd5530
commit
080f5fce79
11 files changed
+17530
-10964
No files matched your search
@@ -0,0 +1,23 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class SliderNumToTextScript : MonoBehaviour
|
||||
{
|
||||
TextMeshProUGUI textMesh;
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
textMesh = GetComponent<TextMeshProUGUI>();
|
||||
}
|
||||
|
||||
public void OnValueChanged(Slider slider) {
|
||||
textMesh.text = slider.value + " %";
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user