More cleanup

This commit is contained in:
2026-06-15 13:04:52 +02:00
parent 8610c6be53
commit 246718f1bd
2 changed files with 1 additions and 11 deletions

View File

@@ -178,7 +178,7 @@ namespace Marro.PacManUdon
{
nextValidDirectionIndex += 1;
}
if (!CheckCollisionInDirection(transform, nextPosition, directionVectors[(int)predefinedPath[nextValidDirectionIndex]]))
if (!pelletManager.IsWallUpcoming(nextPosition, directionVectors[(int)predefinedPath[nextValidDirectionIndex]]))
{
// If we're at a Vector2.zero, we skip applying the direction and only increment.
if (nextValidDirectionIndex == predefinedPathIndex)