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

27 lines
339 B
C#
Raw Normal View History

2025-06-12 09:03:02 +00:00
using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class SetTick: Action
{
[Export]
public OnTick tick;
[Export]
public bool active = true;
protected override void _OnTrigger()
{
if ( tick == null )
{
return;
}
tick.active = active;
}
}
}