using System.Collections;
using System.Collections.Generic;
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);
}
}
Are you using a custom editor for that script?
Are you sure that your code is free of Errors and compiled? (please check the console for this) Because in the code you provided i can at least see one syntax error. If there are syntax errors the code will not compile and thus changes to your code (like a new variable) will not show up.
controller.Move.(move * speed * Time.deltaTime);
There is a dot behint “Move” which will not work.
controller.Move(move * speed * Time.deltaTime);
If this does not solve the issue please add a screenshot of the inspector.