function OnGUI () { if (GUILayout.Button ("Slow",GUILayout.Width (100))) { Time.timeScale = 0.2; } if (GUILayout.Button ("Stop")) { Time.timeScale = 0; } if (GUILayout.Button ("Normal")) { Time.timeScale = 1; } if (GUILayout.Button ("Fast")) { Time.timeScale = 1.5; } }
0 ♥:
張貼留言