private void FollowPlayer() { Vector3 target = GetPlayerPosition(); Data.Debug.finalPosition = target; SetDestination(target); if (!IsPlayerInRange()) { Fsm.Idle(); } else if (IsPlayerInRangeToAttack()) { Fsm.Attack(); } }
public void Attack(Vector3 targetPosition) => Fsm.Attack(targetPosition);