rj-action-library/Runtime/Animation/Highlight/Highlight.cs

28 lines
496 B
C#
Raw Normal View History

2025-01-18 12:49:14 +00:00
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class Highlight:Action
{
[Export]
public HighlightActionType type;
[Export]
2025-01-18 20:02:20 +00:00
public HighlightEffect highlighter;
2025-01-18 12:49:14 +00:00
[Export]
public Node3D[] targets = new Node3D[ 0 ];
2025-01-18 12:49:14 +00:00
protected override void _OnTrigger()
{
highlighter.Highlight( type, targets );
}
}
}