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