22 lines
275 B
C#
22 lines
275 B
C#
|
|
|
||
|
|
using Godot;
|
||
|
|
|
||
|
|
|
||
|
|
namespace Rokojori
|
||
|
|
{
|
||
|
|
[Tool]
|
||
|
|
[GlobalClass ]
|
||
|
|
public partial class SetLabelText : Action
|
||
|
|
{
|
||
|
|
[Export]
|
||
|
|
public Label3D label;
|
||
|
|
|
||
|
|
[Export]
|
||
|
|
public string text;
|
||
|
|
|
||
|
|
protected override void _OnTrigger()
|
||
|
|
{
|
||
|
|
label.Text = text;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|