rj-action-library/Runtime/Actions/TriggerActionInEditor.cs

29 lines
373 B
C#

using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class TriggerActionInEditor : Node
{
[Export]
public RJAction action;
[Export]
public bool execute;
public override void _Process( double delta )
{
if ( ! execute )
{
return;
}
execute = false;
action.Trigger();
}
}
}