我正在尝试设置鼠标灵敏度,但是当滑块值更改时“Int Sensitivity”没有更新。我似乎找不到解决我的问题的办法,但如果你知道我犯了什么愚蠢的错误,请告诉我。谢谢:)
public int Sensitivity;
public Slider SensitivitySlider;
public void SetSensitivity()
{
SensitivitySlider.value = Sensitivity;
}
private void Update()
{
PlayerPrefs.SetInt("sensitivity", Sensitivity);
}