public void nextNode() { if (_path.Count == 0) { _currentNode = _nullNode; } else { _currentNode = _path.Dequeue(); } }
unsafe public CPath(CPathNode[] path) { _path = new Queue <CPathNode>(); _currentNode = _nullNode; for (int i = 0; i < path.Count(); i++) { path[i].index = i; _path.Enqueue(path[i]); } }
public void cancelPath() { _path.Clear(); _currentNode = _nullNode; }