I was creating a code for the one game and in the end some problems appeared:
Assets/Scripts/Player/PlayerMovement.cs(63,23): error CS1547: Keyword 'void' cannot be used in this context
Assets/Scripts/Player/PlayerMovement.cs(63,26): error CS1525: Unexpected symbol '(', expecting ')', ',', ';', '[', or '='
The code looks like this:
void Turning ()
{
Ray camRay = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit floorHit;
if(Physics.Raycast(camRay, out floorHit,camRayLenght, floorMask) )
{
Vector3 playerToMouse = floorHit - transform.position;
playerToMouse.y = of;
Quaternion newRotation = Quaternion.LookRotation(playerToMouse);
playerRigidbody.MoveRotation(newRotation);
}
void Animating (float h, float v);
}