how to lock cursor to game unity code example Example: unity mouse lock Cursor.lockState = CursorLockMode.Locked;