2024-12-01 17:07:41 +00:00
|
|
|
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
{
|
|
|
|
[Tool]
|
|
|
|
[GlobalClass]
|
|
|
|
public partial class TriggerActionInEditor : Node
|
|
|
|
{
|
|
|
|
[Export]
|
2025-01-08 18:46:17 +00:00
|
|
|
public Action action;
|
2024-12-01 17:07:41 +00:00
|
|
|
|
|
|
|
[Export]
|
|
|
|
public bool execute;
|
|
|
|
|
|
|
|
public override void _Process( double delta )
|
|
|
|
{
|
|
|
|
if ( ! execute )
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
execute = false;
|
|
|
|
|
|
|
|
action.Trigger();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|