21 lines
619 B
C#
21 lines
619 B
C#
using Opsive.BehaviorDesigner.Runtime.Tasks;
|
|
using Opsive.Shared.Utility;
|
|
using UnityEngine;
|
|
|
|
namespace Cielonos.MainGame.Characters.AI
|
|
{
|
|
[Description("归还攻击令牌。未持有时静默成功,不会报错。")]
|
|
[Category("Cielonos")]
|
|
public class ReleaseAttackToken : AutomataActionBase
|
|
{
|
|
[Tooltip("要归还的令牌类型。")]
|
|
public AttackTokenType tokenType = AttackTokenType.MeleeAttack;
|
|
|
|
public override TaskStatus OnUpdate()
|
|
{
|
|
CombatManager.CoordinatorSm.ReleaseToken(self, tokenType);
|
|
return TaskStatus.Success;
|
|
}
|
|
}
|
|
}
|