rokojori_action_library/Runtime/Interactions/SetPointableEnabled.cs

24 lines
412 B
C#
Raw Normal View History

using Godot;
using System.Collections;
using System.Collections.Generic;
using Godot.Collections;
2026-05-22 12:25:02 +00:00
using Rokojori.Extensions;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class SetPointableEnabled:Action
{
[Export]
public Pointable pointable;
[Export]
public bool enabled = true;
protected override void _OnTrigger()
{
pointable.enabled = enabled;
}
}
}