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