Experiment
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour {
public float speed;
public GameObject target;
void Update () {
transform.position = Vector3.MoveTowards(transform.position, Pathfinding.getDirection(transform, target.transform.position), Time.deltaTime*speed);
}
}
Oh yeah