速度快捷键
This commit is contained in:
parent
86e495f5dd
commit
1682a2351b
@ -13,6 +13,22 @@ public class TimeScaleController : MonoBehaviour
|
||||
private void Update()
|
||||
{
|
||||
Time.timeScale = animSpeed;
|
||||
if (Input.GetKeyUp(KeyCode.F8))
|
||||
{
|
||||
animSpeed++;
|
||||
}
|
||||
if (Input.GetKeyUp(KeyCode.F7))
|
||||
{
|
||||
animSpeed--;
|
||||
}
|
||||
if (Input.GetKeyUp(KeyCode.F12))
|
||||
{
|
||||
animSpeed = 1;
|
||||
}
|
||||
if (Input.GetKeyUp(KeyCode.F11))
|
||||
{
|
||||
animSpeed = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user