Doesn't move when changing direction looking
This commit is contained in:
@@ -110,8 +110,10 @@ namespace DepthsBelow
|
|||||||
foreach (var unit in core.Squad)
|
foreach (var unit in core.Squad)
|
||||||
if (unit.Selected)
|
if (unit.Selected)
|
||||||
{
|
{
|
||||||
|
if (checkingDirection == false) {
|
||||||
unit.GetComponent<Component.PathFinder>().Goal = Grid.WorldToGrid(mouseWorldPos);
|
unit.GetComponent<Component.PathFinder>().Goal = Grid.WorldToGrid(mouseWorldPos);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (ms.RightButton == ButtonState.Pressed)
|
if (ms.RightButton == ButtonState.Pressed)
|
||||||
|
|||||||
Reference in New Issue
Block a user