A* Pathfinding Project

Compiler errors with free Beta


Hi, I´m getting a compiler error in 4.1.0 Beta: Assets/AstarPathfindingProject/ExampleScenes/Example14_TurnBased_Hexagon/TurnBasedManager.cs(160,14): error CS0103: The name `ConstantPath’ does not exist in the current context
Which is this line:

var path = ConstantPath.Construct(unit.transform.position, unit.movementPoints * 1000 + 1);

And for that getting other compiler error:
Assets/AstarPathfindingProject/ExampleScenes/Example14_TurnBased_Hexagon/TurnBasedManager.cs(162,8): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer

path.traversalProvider = unit.traversalProvider;

So i hope you can help me as I´m stuck in my game because unity´s navmesh pathfinding sucks xd