void ComputeSync(Vector2 startPos, Vector2 endPos) { // start and endPos are swapped because the result linkedlist is reversed m_pathNodes = PathFinding.GetRouteFromTo(endPos, startPos); ProcessComputedPath(); }
void UpdatePathSync(Vector2 startPos, Vector2 endPos) { m_pathNodes = PathFinding.GetRouteFromTo(startPos, endPos); ProcessComputedPath(); }