I’m trying convert my move script in C#, here is a part of code I have
void FixedUpdate()
{
if (grounded){
// Calculate how fast we should be moving
targetVelocity = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
if (Input.GetAxis("Horizontal") Input.GetAxis("Vertical"))
{
speed = wSpeed;
}else
{
speed = nSpeed;
}
}
}
in .js its ok, but in c# I’ve got an error:
What should I do?