Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pathfinding - Grid Component same as Built in Unity Component #2

Open
markymark501998 opened this issue Mar 6, 2018 · 3 comments
Open

Comments

@markymark501998
Copy link

Hello there,

I haven't tried your pathfinding yet but it looks solid. However when I dropped the code in my game project I saw that the grid component is giving me a warning since Unity introduced its tilemap system.

Just thought I'd let you know!

Sincerely,
Mark H.

@RonenNess
Copy link
Owner

Thanks! Maybe I'll fix it one day.. leaving this issue opened for now :)

@fisheraf
Copy link

fisheraf commented Jul 3, 2019

An easy fix would be to just update the Grid.cs script to GridScript.cs.

@buddhisthead
Copy link

I am offering a possible solution to this with PR #8, which changes the library to use an interface GridI. Then, the user can just change the concrete class name from Grid to SquaresGrid or whatever and avoid this problem. At the same time, it also allows for lazy evaluation of the Node costs (and setup) plus hex-shaped "grids" with a different implementation of Neighbors (for examples, please see https://www.redblobgames.com/grids/hexagons/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants