diff --git a/src/DotRecast.Detour.Extras/Unity/Astar/UnityAStarPathfindingImporter.cs b/src/DotRecast.Detour.Extras/Unity/Astar/UnityAStarPathfindingImporter.cs index 1fc602b3..b65db19e 100644 --- a/src/DotRecast.Detour.Extras/Unity/Astar/UnityAStarPathfindingImporter.cs +++ b/src/DotRecast.Detour.Extras/Unity/Astar/UnityAStarPathfindingImporter.cs @@ -48,8 +48,7 @@ public DtNavMesh[] Load(FileStream zipFile) int nodeCount = graphMeshData.CountNodes(); if (connections.Count != nodeCount) { - throw new ArgumentException("Inconsistent number of nodes in data file: " + nodeCount - + " and connecton files: " + connections.Count); + throw new ArgumentException($"Inconsistent number of nodes in data file: {nodeCount} and connection files: {connections.Count}"); } // Build BV tree