4
I was creating a code for the one game and in the end appeared some problems:
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 is 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);
}
Leandro, welcome to SOPT. This site is not a forum. If you haven’t done it yet, do the [tour] please. If any answers solved your problem, consider accepting it (marking it by clicking on the "v" below the score). Also remember to open another question for a new question/difficulty. :)
– Luiz Vieira
understood thanks , more still not fully solved my problem
– Leandro Yoshida
You solved the errors of this question, didn’t you? As I said, this site is not a forum. If you have another question, open another question. If you want step-by-step help, I suggest looking for someone with an interest in helping you with [chat] (but honestly I don’t know if you already have enough reputation to join the chat - test to see, okay?) or another site. Good luck! :)
– Luiz Vieira
thank you Luiz Vieira
– Leandro Yoshida