高级版(我要自己加一个键位):
在 if (((!SteelInput.HasInputBound(SteelInput.Inputs.Slowmotion)) ? Input.GetKeyDown(KeyCode.CapsLock) : SteelInput.GetButtonDown(SteelInput.Inputs.Slowmotion)) && !IngameMenuUi.IsOpen() && !this.inPhotoMode)
{
if (Time.timeScale < 1f)
{
Time.timeScale = 1f;
}
else
{
Time.timeScale = 0.2f;
}
Time.fixedDeltaTime = Time.timeScale / 60f;
this.mixer.SetFloat("pitch", Time.timeScale);
}
后加一行,打上下面的模板:
if (Input.GetKeyDown(KeyCode.T) && !IngameMenuUi.IsOpen() && !this.inPhotoMode)
{
if (Time.timeScale > 1f)
{
Time.timeScale = 1f;
}
else
{
Time.timeScale = 5f;
}
Time.fixedDeltaTime = Time.timeScale / 60f;
this.mixer.SetFloat("pitch", Time.timeScale);
}
这样就直接加了一个改不了的加速键T

就像这样
当然KeyCode.T中的T是可以改的
改了就变成改的那个键
至于改新键位流速的方法参照基础版改法