internal bool ManuallyMoveAgent()
{
if (canMove)
{
Vector3 dir = (currentPath.vectorPath[currentWaypoint] - transform.position).normalized;
dir *= Speed * Time.deltaTime;
RVOController.Move(dir);
if (Vector3.Distance(transform.position, currentPath.vectorPath[currentWaypoint]) < NextWaypointDistance)
{
currentWaypoint++;
}
if (currentWaypoint >= currentPath.vectorPath.Count)
{
canMove = false;
Debug.Log("End Of Path Reached");
return true;
}
return false;
}
else
{
Debug.LogWarning("Path is not ready!!");
return false;
}
}
internal void ManuallySetPath(Path path)