Skip to content

Instantly share code, notes, and snippets.

@udithishara
Created December 28, 2013 06:01
Show Gist options
  • Save udithishara/8156521 to your computer and use it in GitHub Desktop.
Save udithishara/8156521 to your computer and use it in GitHub Desktop.
//disable mouselook and movements
xAxisCam = gameObject.Find("Player").GetComponent("MouseLook");
xAxisCam.enabled = false;
yAxisCam = gameObject.Find("PlayerCamera").GetComponent("MouseLook");
yAxisCam.enabled = false;
Time.timeScale = 0;
// xAxisCam & yAxisCam - are the classes set for easy true false(ing)
// Player & PlayerCamera are the names of gameobjects that has MouseLook script attached to'em
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment