27 lines
808 B
C#
27 lines
808 B
C#
using System;
|
|
|
|
using Colosseum.Enemy;
|
|
|
|
using Unity.Behavior;
|
|
using Unity.Properties;
|
|
|
|
using Action = Unity.Behavior.Action;
|
|
|
|
/// <summary>
|
|
/// 현재 근접 패턴 차례가 보조 패턴인지 확인하는 공통 체크 액션입니다.
|
|
/// </summary>
|
|
[Serializable, GeneratePropertyBag]
|
|
[NodeDescription(
|
|
name: "Check Secondary Pattern Turn",
|
|
story: "현재 근접 패턴 차례가 보조 패턴인지 확인",
|
|
category: "Action",
|
|
id: "e85477bd25894248aeeea8b41efc7f48")]
|
|
public partial class CheckSecondaryPatternTurnAction : Action
|
|
{
|
|
protected override Status OnStart()
|
|
{
|
|
BossCombatBehaviorContext context = GameObject.GetComponent<BossCombatBehaviorContext>();
|
|
return context != null && context.IsNextSecondaryPattern() ? Status.Success : Status.Failure;
|
|
}
|
|
}
|