몬스터 Hit, Death 상태 틀 추가

This commit is contained in:
Mingu Kim
2025-02-19 00:44:53 +09:00
parent 4d0a7de68a
commit ae5913ec0b
4 changed files with 91 additions and 10 deletions

View File

@@ -15,17 +15,16 @@ namespace TON
if (other.CompareTag("Player"))
{
_monsterBase.IsAttacking = true;
// _monsterBase.SetTransition(new AttackState());
// _monsterBase.SetTransition(new MonsterSkillState());
}
}
private void OnTriggerExit2D(Collider2D other)
{
_monsterBase.IsAttacking = false;
// _monsterBase.SetTransition(new ChasingState());
// Debug.Log("감지 벗어남");
if (other.CompareTag("Player"))
{
_monsterBase.IsAttacking = false;
_monsterBase.IsFisnishAttack = true; // 공격 종료 상태로 설정
}
}
}
}