mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 16:23:11 +02:00
restore old path finding value
This commit is contained in:
parent
de4764a13b
commit
46ab64aa48
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user