- Home /
Question by
Sebastian 2 · Apr 09, 2011 at 10:40 PM ·
getcomponentmouselookenableunpause
MouseLook Component - Can not enable it again
Hey Community, If I pause my game and try to continue it, it doesn't work. The MouseLook script is always disabled:
if(Input.GetKeyDown("escape")){
if(!IsPaused)
{
IsPaused = true;
Screen.lockCursor = false;
GetComponent("MouseLook").enabled = false;
}
else
{
GetComponent("MouseLook").enabled = true;
Screen.lockCursor = true;
IsPaused = false;
}
}
How can I enable it again? Thanks in advance, Sebastian
Comment