Files
Kalulu/sources/utils/fx/highlight.gd
T
2024-10-23 14:50:40 +02:00

17 lines
294 B
GDScript

@tool
extends Control
class_name HighlightFX
@onready var animation_player: AnimationPlayer = $AnimationPlayer
var is_playing : bool = false
func play() -> void:
is_playing = true
animation_player.play("highlight")
func stop() -> void:
is_playing = false
animation_player.play("stop")