Merge branch 'dev_rower' into dev_cyp

# Conflicts:
#	ProjectSettings/ProjectSettings.asset
This commit is contained in:
Caiyanpeng committed 2022-03-09 09:12:42 +08:00
commit e6f3e2ecfa
10 files changed
+2371 -1638

No files matched your search

+10
View File
@@ -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()
{