Skip to content
Snippets Groups Projects
Commit ec9b2501 authored by William G. Tresselt's avatar William G. Tresselt
Browse files

Made key stop spinning when game paused

parent ea56f792
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ public class Key : MonoBehaviour
// Update is called once per frame
void Update()
{
transform.Rotate(0, 0.25f, 0, Space.World); //Rotate controller, or key, around itself on an angle
if(Time.timeScale > 0) transform.Rotate(0, 0.25f, 0, Space.World); //Rotate controller, or key, around itself on an angle
}
private void OnTriggerEnter(Collider other)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment