MonsterBase 및 StateMachine 코드 정리

This commit is contained in:
Mingu Kim
2025-02-18 00:55:23 +09:00
parent f75712a330
commit 41234e3e97
9 changed files with 87 additions and 291 deletions

View File

@@ -18,22 +18,6 @@ namespace TON
// _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)
@@ -41,7 +25,7 @@ namespace TON
_monsterBase.IsAttacking = false;
// _monsterBase.SetTransition(new ChasingState());
Debug.Log("감지 벗어남");
// Debug.Log("감지 벗어남");
}
}
}