[Input] Fix issue where player would not move to items after using direct/drag movement mode

This commit is contained in:
Michal Pikulski
2025-09-08 08:56:11 +02:00
parent 3b0988243e
commit 604871a870
2 changed files with 52 additions and 0 deletions

View File

@@ -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));
}