te-he, compile error

This commit is contained in:
Michal Pikulski
2025-10-07 13:00:58 +02:00
parent eb938f9adb
commit d0d785d605

View File

@@ -374,7 +374,7 @@ public class FollowerController: MonoBehaviour
// Wait until follower reaches target
while (Vector2.Distance(new Vector2(transform.position.x, transform.position.y),
new Vector2(targetPosition.x, targetPosition.y)) > GameManager.Instance.StopThreshold)
new Vector2(targetPosition.x, targetPosition.y)) > _settings.StopThreshold)
{
yield return null;
}
@@ -398,7 +398,7 @@ public class FollowerController: MonoBehaviour
// Wait until follower returns to player
while (playerTransform != null &&
Vector2.Distance(new Vector2(transform.position.x, transform.position.y),
new Vector2(playerTransform.position.x, playerTransform.position.y)) > GameManager.Instance.StopThreshold)
new Vector2(playerTransform.position.x, playerTransform.position.y)) > _settings.StopThreshold)
{
yield return null;
}