7 lines
152 B
GDScript
7 lines
152 B
GDScript
extends TextureRect
|
|
|
|
@onready var anim_player : AnimationPlayer = $AnimationPlayer
|
|
|
|
func play_animation(anim : String) -> void:
|
|
anim_player.play(anim)
|