[Input] Fix issue where player would not move to items after using direct/drag movement mode
This commit is contained in:
@@ -207,6 +207,13 @@ namespace Input
|
||||
}
|
||||
|
||||
interruptMoveTo = false;
|
||||
// Ensure pathfinding is enabled for MoveToAndNotify
|
||||
if (aiPath != null)
|
||||
{
|
||||
aiPath.enabled = true;
|
||||
aiPath.canMove = true;
|
||||
aiPath.isStopped = false;
|
||||
}
|
||||
moveToCoroutine = StartCoroutine(MoveToTargetCoroutine(target));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user