public void Test() { SetupNeighbors(); var fn = JPS <T> .HasForcedNeighbor(Start, HexDirection.PlusZ); Debug.Log(fn); }
public List <Hexagon <T> > GetPath() { // TODO: Could use some sort of dirty flag here to skip recalculation if no new hexagons added SetupNeighbors(); // for testing //return new List<Hexagon<T>>(_obstacles); if (Start == null || End == null) { return(null); } return(JPS <T> .JPSPath(this)); }