private void OnTriggerEnter(Collider other) { radarObj = other.gameObject; CharacterBase tar = radarObj.GetComponent <CharacterBase>(); if (tar != null) { movement.MoveOverride(); current.SetTarget(radarObj); transform.LookAt(current.target.transform); } }
public override void Exit(int nextState) { base.Exit(nextState); moveIdle.MoveOverride(); }