mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
committed by
Rémi Verschelde
parent
dfa127411e
commit
ed9494f251
@@ -9,3 +9,9 @@ func _on_coin_body_enter(body):
|
||||
if (not taken and body extends preload("res://player.gd")):
|
||||
get_node("anim").play("take")
|
||||
taken = true
|
||||
|
||||
|
||||
func _on_anim_finished():
|
||||
if get_node("anim").get_current_animation() == "take":
|
||||
queue_free()
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user