Some checks failed
Build project / Build for (StandaloneLinux64, 6000.0.37f1) (push) Successful in 5m54s
Build project / Build for (StandaloneWindows64, 6000.0.37f1) (push) Successful in 5m43s
Build project / Publish to itch.io (StandaloneLinux64) (push) Successful in 11s
Build project / Publish to itch.io (StandaloneWindows64) (push) Successful in 9s
Build project / Build for (StandaloneWindows64, 6000.0.37f1) (pull_request) Has been cancelled
Build project / Publish to itch.io (StandaloneLinux64) (pull_request) Has been cancelled
Build project / Publish to itch.io (StandaloneWindows64) (pull_request) Has been cancelled
Build project / Build for (StandaloneLinux64, 6000.0.37f1) (pull_request) Has been cancelled
15 lines
305 B
C#
15 lines
305 B
C#
using System.Reflection.Emit;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
[RequireComponent(typeof(Text))]
|
|
public class ShowSliderValue : MonoBehaviour
|
|
{
|
|
public void UpdateLabel (float value)
|
|
{
|
|
Text lbl = GetComponent<Text>();
|
|
if (lbl != null)
|
|
lbl.text = Mathf.RoundToInt (value * 100) + "%";
|
|
}
|
|
}
|