몬스터 스킬 json 로드 기능 추가

This commit is contained in:
Mingu Kim
2025-02-15 02:17:46 +09:00
parent d59faab87d
commit 648452a153
8 changed files with 345 additions and 24 deletions

View File

@@ -15,7 +15,24 @@ namespace TON
if (other.CompareTag("Player"))
{
_monsterBase.SetTransition(new AttackState());
// _monsterBase.SetTransition(new MonsterSkillState());
}
// if (!_monsterBase.monsterSkillID)
// {
// if (other.CompareTag("Player"))
// {
// // 일정 확률로 스킬 사용
// if (Random.value < 0.3f) // 30% 확률
// {
// _monsterBase.SetTransition(new SkillState());
// }
// else
// {
// _monsterBase.SetTransition(new AttackState());
// }
// }
// }
}
private void OnTriggerExit2D(Collider2D other)