mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-05 10:09:47 +03:00
Compare commits
1 Commits
4.0
...
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")):
|
if (not taken and body extends preload("res://player.gd")):
|
||||||
get_node("anim").play("take")
|
get_node("anim").play("take")
|
||||||
taken = true
|
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