解决c2表头设定课程后抖动问题,设备断开失败问题
This commit is contained in:
1 parent
0202814f67
commit
610c98f9b8
5 files changed
+18
-10
No files matched your search
@@ -64,12 +64,14 @@ public class PFUISlider : MonoBehaviour
|
||||
text.text = $"{valueHandler(f):#0}";
|
||||
this.ValueChangedHandler?.Invoke(f);
|
||||
}
|
||||
public void SetValue(float a)
|
||||
public void SetValue(float a,bool silent = false)
|
||||
{
|
||||
a = a > 1 ? 1 : a;
|
||||
a = a < 0 ? 0 : a;
|
||||
slider.value = a;
|
||||
OnValueChanged();
|
||||
text.text = $"{valueHandler(a):#0}";
|
||||
if(!silent)
|
||||
OnValueChanged();
|
||||
}
|
||||
|
||||
public float GetValue()
|
||||
|
||||
Reference in new issue
Block a user