rj-action-library/Runtime/Actions/Node/SetNodeState.cs

24 lines
369 B
C#
Raw Normal View History

2024-08-04 09:08:12 +00:00
using Godot;
namespace Rokojori
{
[GlobalClass ]
2025-01-08 18:46:17 +00:00
public partial class SetNodeState : Action
2024-08-04 09:08:12 +00:00
{
[Export]
public Node[] enable;
[Export]
public Node[] disable;
2025-01-08 18:46:17 +00:00
protected override void _OnTrigger()
2024-08-04 09:08:12 +00:00
{
Arrays.ForEach( enable, n => NodeState.Enable( n ) );
Arrays.ForEach( disable, n => NodeState.Disable( n ) );
}
}
}