I’m currently following a tutorial to try and learn unity 3D character movement and the code for the movement isn’t working, returning “unexpected character “””" in the console around my Input.GetAxis(“Horizontal”); and Input.GetAxis(“Vertical”);
Here’s my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
public CharacterController characterController;
public float speed = 6;
// Update is called once per frame
void Update()
{
Move();
}
private void Move()
{
float horizontalMove = Input.GetAxis(“Horizontal”);
float verticalMove = Input.GetAxis(“Vertical”);
Vector3 move = transform.forward * verticalMove + transform.right * horizontalMove;
characterController.Move(speed * Time.deltaTime * move);
}
}
I’ve verified that these are the same names used in my input manager and I’ve been searching for a couple hours and haven’t found a way to fix this, if there’s anything apparently obvious with my code or a way to fix it, I’d appreciate the help.