private void OnReadyForNextCell() { // switch the current cell CurrentCell = TargetCell; // set the next cell if (TargetCell != null) { // get the dijkstra node DijkstraNodeAlliance parent = TargetCell[DijkstraKey].Parent as DijkstraNodeAlliance; TargetCell = (parent != null ? parent.Cell : null); } // compute the orientation AdjustOrientation(); }
public void LinkDijkstraNode(DijkstraNodeAlliance node, DijkstraType type) { mDijkstraData[(int)type] = node; }