26 lines
392 B
C#
26 lines
392 B
C#
|
|
||
|
using Godot;
|
||
|
|
||
|
|
||
|
namespace Rokojori
|
||
|
{
|
||
|
[GlobalClass]
|
||
|
public partial class ActionList : RJAction
|
||
|
{
|
||
|
[Export]
|
||
|
public RJAction[] actions;
|
||
|
[Export]
|
||
|
public bool triggerDirectChildren = true;
|
||
|
|
||
|
protected override void _OnTrigger()
|
||
|
{
|
||
|
for ( int i = 0; i < actions.Length; i++ )
|
||
|
{
|
||
|
Actions.Trigger( actions[ i ] );
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|