mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-01 13:49:12 +03:00
Compare commits
1 Commits
master
...
2.1.1-stab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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