mirror of
https://github.com/DerTyp7/grow-ai-unity.git
synced 2025-10-30 12:57:09 +01:00
added Gridinfo
This commit is contained in:
@@ -12,7 +12,11 @@ public class PathfindingSystem : MonoBehaviour
|
||||
void Start()
|
||||
{
|
||||
instance = this;
|
||||
pathfinding = new Pathfinding(20, 10);
|
||||
int gridWidth = GridInfo.instance.gridWidth;
|
||||
int gridHeight = GridInfo.instance.gridHeight;
|
||||
float cellSize = GridInfo.instance.cellSize;
|
||||
|
||||
pathfinding = new Pathfinding(gridWidth, gridHeight, cellSize);
|
||||
}
|
||||
|
||||
void Update()
|
||||
|
||||
Reference in New Issue
Block a user