제자리로 판단하는 거리 조정

Work in JIRA ISSUE DEG-100
This commit is contained in:
Fiore 2025-04-29 15:18:55 +09:00
parent ea45936114
commit d0d42cf551
2 changed files with 1 additions and 3 deletions

View File

@ -73,8 +73,6 @@ public class CasterDemonController : EnemyController
_doneBattleSequence = true; _doneBattleSequence = true;
} }
private void Teleport() private void Teleport()
{ {
if (teleportEffectPrefab != null) if (teleportEffectPrefab != null)

View File

@ -16,7 +16,7 @@ public class EnemyStateFlee :IEnemyState
private Vector3 _lastPosition; private Vector3 _lastPosition;
private float _stuckTimer = 0f; private float _stuckTimer = 0f;
private const float StuckThresholdTime = 1f; // 1초 동안 거의 못 움직이면 막힌 걸로 간주 private const float StuckThresholdTime = 1f; // 1초 동안 거의 못 움직이면 막힌 걸로 간주
private const float StuckMoveThreshold = 0.01f; // 이내 이동은 “제자리”로 본다 private const float StuckMoveThreshold = 0.1f; // 이내 이동은 “제자리”로 본다
public void Enter(EnemyController enemyController) public void Enter(EnemyController enemyController)
{ {