CharacterController.Move doesn't work?


I want to make a tps movement, but there is an error (‘CharacterController’ does not contain a definition for ‘Move’ and no accessible extension method ‘Move’ accepting a first argument of type ‘CharacterController’ could be found)

This is my script for the player:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ThirdPersonMovementScript : MonoBehaviour
    public CharacterController controller;
    public float speed;
    void Update()
        float horizontal = Input.GetAxisRaw("Horizontal");
        float vertical = Input.GetAxisRaw("Vertical");
        Vector3 direction = new Vector3 (horizontal, 0, vertical).normalized;

        if (direction.magnitude >= 0.1f)
            controller.Move (direction * speed * Time.deltaTime);

Thanks for help!

Works fine on my end.
btw the if statemet is pretty redundant since you just normalized the vector