feat: add enemy threat targeting system
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Colosseum.Editor
|
||||
{
|
||||
private BossEnemy boss;
|
||||
private bool showPhaseDetails = true;
|
||||
private bool showThreatInfo = true;
|
||||
private bool showDebugTools = true;
|
||||
private int selectedPhaseIndex = 0;
|
||||
|
||||
@@ -45,6 +46,11 @@ namespace Colosseum.Editor
|
||||
|
||||
EditorGUILayout.Space(10);
|
||||
|
||||
// 위협 정보
|
||||
DrawThreatInfo();
|
||||
|
||||
EditorGUILayout.Space(10);
|
||||
|
||||
// 디버그 도구
|
||||
DrawDebugTools();
|
||||
}
|
||||
@@ -136,6 +142,36 @@ namespace Colosseum.Editor
|
||||
EditorGUI.indentLevel--;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 위협 정보 표시
|
||||
/// </summary>
|
||||
private void DrawThreatInfo()
|
||||
{
|
||||
showThreatInfo = EditorGUILayout.Foldout(showThreatInfo, "위협 정보", true);
|
||||
|
||||
if (!showThreatInfo)
|
||||
return;
|
||||
|
||||
EditorGUI.indentLevel++;
|
||||
|
||||
if (!boss.UseThreatSystem)
|
||||
{
|
||||
EditorGUILayout.HelpBox("위협 시스템이 비활성화되어 있습니다.", MessageType.Info);
|
||||
EditorGUI.indentLevel--;
|
||||
return;
|
||||
}
|
||||
|
||||
EditorGUILayout.LabelField("위협 테이블", EditorStyles.boldLabel);
|
||||
EditorGUILayout.TextArea(boss.GetThreatDebugSummary(), GUILayout.MinHeight(70f));
|
||||
|
||||
if (GUILayout.Button("위협 초기화"))
|
||||
{
|
||||
boss.ClearAllThreat();
|
||||
}
|
||||
|
||||
EditorGUI.indentLevel--;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 디버그 도구 표시
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user