Merge branch 'dev_rower' into dev_cyp
# Conflicts: # ProjectSettings/ProjectSettings.asset
This commit is contained in:
commit
e6f3e2ecfa
10 files changed
+2371
-1638
No files matched your search
@@ -17,6 +17,16 @@ public class PFUISlider : MonoBehaviour
|
||||
text.text = $"{(f * 100).ToString("#0")}%";
|
||||
});
|
||||
}
|
||||
public void SetValueChanged(System.Action<float> a)
|
||||
{
|
||||
slider = transform.GetComponent<Slider>();
|
||||
slider.onValueChanged.RemoveAllListeners();
|
||||
slider.onValueChanged.AddListener((f) =>
|
||||
{
|
||||
text.text = $"{(f * 100).ToString("#0")}%";
|
||||
a.Invoke(f);
|
||||
});
|
||||
}
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user