몬스터 스킬 json 로드 기능 추가
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user