// Creates the Navigation Graph private void CreateNavGraph() { Debug.Log("[WORLD]: Re-creating NavGraph..."); if (navGraph == null) { navGraph = new NavGraph(); } navGraph.blockingLayer = blockingLayer; navGraph.terrainLayer = walkableLayer; navGraph.GenerateFloodfill(width, height, 0.1f); Debug.Log("[WORLD]: NavGraph Generated."); }