it works
This commit is contained in:
8
scripts/coin.gd
Normal file
8
scripts/coin.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends Area2D
|
||||
@onready var aplayer = $AnimationPlayer
|
||||
func _ready() -> void:
|
||||
print("coin ready!")
|
||||
|
||||
func _on_body_entered(body:Node2D) -> void:
|
||||
GameManager.add_point()
|
||||
aplayer.play("pickup_sound")
|
||||
Reference in New Issue
Block a user