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

23 lines
593 B
C#

using Godot;
namespace Rokojori
{
[GlobalClass, Icon("res://addons/rokojori_action_library/Icons/RJOnEvent.svg") ]
public partial class OnPhysicsProcess : Node
{
/** <summary for="field actions">Actions to execute</summary>*/
[Export]
public Action[] actions;
/** <summary for="field triggerDirectChildren">Whether to execute Action child nodes</summary>*/
[Export]
public bool triggerDirectChildren = true;
public override void _PhysicsProcess( double delta )
{
Action.TriggerAll( actions, this, triggerDirectChildren );
}
}
}