11 lines
279 B
GDScript
11 lines
279 B
GDScript
class_name BattleCursor extends Control
|
|
|
|
@export var cursor:PackedScene
|
|
|
|
func setCursors(targets:Array[BattleSingleton.BattlePosition]) -> void:
|
|
clearCursors()
|
|
|
|
func clearCursors() -> void:
|
|
# Clear all children (cursors).
|
|
for child in get_children():
|
|
child.queue_free() |