added gumba mushroom and sound
This commit is contained in:
+2
-1
@@ -1,8 +1,9 @@
|
||||
extends Area2D
|
||||
@onready var animation_player = $AnimationPlayer
|
||||
|
||||
func collect_coin(body):
|
||||
body.increase_coins()
|
||||
queue_free()
|
||||
animation_player.play("pickup")
|
||||
|
||||
func _on_body_entered(body):
|
||||
collect_coin(body)
|
||||
|
||||
Reference in New Issue
Block a user