I am following a tutorial for first person games and I’m getting this error:
Assets/PlayerMovement.cs(7,21): error CS1003: Syntax error, ‘,’ expected
Here is my code:
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public CharacterController controller;
public float speed 12f;
// Update is called once per frame
void Update()
{
float x = Input.GetAxis("Horizontal");
float z = Input.GetAxis("Vertical");
Vector3 move = transform.right * x + transform.forward * z;
controller.Move(move * speed * Time.deltaTime);
}
}
Does anybody know how to fix this?