21 lines
331 B
C#
21 lines
331 B
C#
![]() |
|
||
|
using Godot;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Rokojori
|
||
|
{
|
||
|
[Tool][GlobalClass]
|
||
|
public partial class RemoveNode : Action
|
||
|
{
|
||
|
[Export]
|
||
|
public Node target;
|
||
|
|
||
|
protected override void _OnTrigger()
|
||
|
{
|
||
|
if ( target != null )
|
||
|
{
|
||
|
target.SelfDestroy();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|