23 lines
385 B
C#
23 lines
385 B
C#
![]() |
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;
|
||
|
}
|
||
|
}
|
||
|
}
|