|
hey guys. i made a pause menu script and i have my character model set on mouse orbit but it doesnt work with the pause script. here's the pause menu script: using System.Collections; public class PauseMenu : MonoBehaviour { public GUISkin myskin; } Do you think you could send me some advice on how to make the orbit pause along with the menu? Thanks!
(comments are locked)
|
|
GameObject.Find("First Person Controller").GetComponent(mouse Orbit).enabled = false; The names may not be correct but this is kind of the basic of what you need to use. Also yo unpause just change the false to true. (just realised your code is c# so may not work, but someone might be able to translate it for you) if(Input.GetKey(KeyCode.P) || Input.GetKey(KeyCode.Escape)) { if (paused) paused = false; GameObject.Find("First Person Controller").GetComponent(mouse Orbit).enabled = true; else paused = true; GameObject.Find("First Person Controller").GetComponent(mouse Orbit).enabled = false;
Apr 29 '12 at 11:26 AM
chris gough
(comments are locked)
|
