Screen.lockCursor = true; // disable the cursor
Screen.lockCursor = false; // enable the cursor
Check out this [Screen][1] class.
[1]: http://docs.unity3d.com/Documentation/ScriptReference/Screen-lockCursor.html
↧