restore old path finding value

This commit is contained in:
Krzysztof Stefan Rudnicki 2022-06-03 14:02:20 +02:00
parent de4764a13b
commit 46ab64aa48

View File

@ -30,7 +30,7 @@ public class Soldier : Entity
return; // cannot find path: do nothing (for now)
}
Vector2Int movementStepDestination = path[path.Count - 1];
Vector2Int movementStepDestination = path[0];
if (!TilemapManager.MoveSoldierS(soldier.tileCoord.x, soldier.tileCoord.y, movementStepDestination.x, movementStepDestination.y))