Datasets:
File size: 361 Bytes
c21eb24 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
onready var player = $AnimationPlayer
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func set_animation(anim):
if player.current_animation == anim:
return
player.play(anim)
|