Can anyone explain to me where am I going wrong with the Move() funtion ?
I am giving it 3 arguments however it keeps reterning error CS1501 No overload for method “Move” takes 3 arguments.
Please use code tags in the future.
CharacterController.Move takes a Vector3 as argument.
public float moveSpeed = 5;
// assign this via the inspector, or in Awake/Start
public CharacterController characterController;
void Update()
{
characterController.Move(new Vector3(Input.GetAxis("Horizontal") * moveSpeed, 0, Input.GetAxis("Vertical") * moveSpeed));
}