2026-05-20 몬스터AI추가
This commit is contained in:
@@ -74,6 +74,12 @@ public class Enemy : MonoBehaviour, IDamageable
|
||||
private Vector2 _grabTargetPosition;// 잡힌 동안 강제로 위치할 좌표
|
||||
private int _grabSolidMask; // 잡혀서 이동할 때 벽에 끼이지 않게 검사할 솔리드 레이어
|
||||
|
||||
public bool IsDead => _health != null && _health.IsDead;
|
||||
public bool IsGrabbed => _isGrabbed;
|
||||
public bool IsInHitReaction => _hitReactionTimer > 0f || _isHitPositionCorrecting || _flashTimer > 0f;
|
||||
public bool CanUseAI => !IsDead && !_isGrabbed && !IsInHitReaction;
|
||||
|
||||
|
||||
// 컴포넌트 캐싱 + Health.OnDied 구독 (사망 시 HandleDeath 자동 호출).
|
||||
private void Awake()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user