Doesn't move when changing direction looking

This commit is contained in:
Niklas Ulf Anders Cullberg
2012-10-09 16:14:11 +02:00
parent 6e3b2f2f94
commit 7ea3b0be99
2 changed files with 182 additions and 180 deletions
+3 -1
View File
@@ -110,7 +110,9 @@ namespace DepthsBelow
foreach (var unit in core.Squad) foreach (var unit in core.Squad)
if (unit.Selected) if (unit.Selected)
{ {
unit.GetComponent<Component.PathFinder>().Goal = Grid.WorldToGrid(mouseWorldPos); if (checkingDirection == false) {
unit.GetComponent<Component.PathFinder>().Goal = Grid.WorldToGrid(mouseWorldPos);
}
} }
} }