using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test : MonoBehaviour {
public Transform target;
// Update is calle
ThirdPersonController
uses CharacterController and OnControllerColliderHit is used for that not OnTriggerEnter
.
Note that you must move it with the Move function not directly by its transform in order for OnControllerColliderHit
to be called.
void OnControllerColliderHit(ControllerColliderHit hit)
{
}