rokojori_action_library/Runtime/Behavior/Fight/IsEngagedInFight.cs

18 lines
278 B
C#

using Godot;
using Rokojori.Extensions;
namespace Rokojori;
[Tool]
[GlobalClass]
public partial class IsEngagedInFight:SceneCondition
{
[Export]
public FightSlot slot;
public override bool Evaluate()
{
return FightManager.Get()?.IsEngaged( slot ) ?? false;
}
}