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

28 lines
562 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]
2025-11-26 14:23:59 +00:00
[GlobalClass, Icon("res://addons/rokojori_action_library/Icons/Highlight.svg")]
2025-01-18 12:49:14 +00:00
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 );
}
}
}