rj-action-library/Runtime/Interactions/SetPointableEnabled.cs

23 lines
385 B
C#
Raw Normal View History

using Godot;
using System.Collections;
using System.Collections.Generic;
using Godot.Collections;
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;
}
}
}