Created
December 28, 2013 06:01
-
-
Save udithishara/8156521 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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