- big pattern grace period 판정을 런타임 헬퍼에서 제거하고 BT 조건/액션 노드로 명시 - Increment/Reset Basic Loop Count 노드 추가 및 BT_Drog 재빌드 반영 - Signature Failure Effects 수치를 BT 노드가 직접 보관하도록 정리
32 lines
920 B
C#
32 lines
920 B
C#
using System;
|
|
|
|
using Colosseum.Enemy;
|
|
|
|
using Unity.Behavior;
|
|
using Unity.Properties;
|
|
|
|
using Action = Unity.Behavior.Action;
|
|
|
|
/// <summary>
|
|
/// 마지막 대형/징벌 패턴 이후 기본 루프 누적 횟수를 초기화합니다.
|
|
/// </summary>
|
|
[Serializable, GeneratePropertyBag]
|
|
[NodeDescription(
|
|
name: "Reset Basic Loop Count",
|
|
story: "기본 루프 누적 횟수 초기화",
|
|
category: "Action",
|
|
id: "0f7fc0e5-3c0d-4db6-a9aa-8e2e56f9b672")]
|
|
public partial class ResetBasicLoopCountAction : Action
|
|
{
|
|
protected override Status OnStart()
|
|
{
|
|
BossBehaviorRuntimeState runtimeState = GameObject.GetComponent<BossBehaviorRuntimeState>();
|
|
if (runtimeState == null)
|
|
return Status.Failure;
|
|
|
|
runtimeState.ResetBasicLoopCount();
|
|
runtimeState.LogDebug(nameof(ResetBasicLoopCountAction), "기본 루프 누적 초기화");
|
|
return Status.Success;
|
|
}
|
|
}
|