liblast/Game/Assets/HUD/Crosshair.gd

12 lines
160 B
GDScript

extends Control
@onready var aplayer = $AnimationPlayer
func hit():
aplayer.stop()
aplayer.play("Hit")
func kill():
aplayer.stop()
aplayer.play("Kill")