blob: bd2eea81e29d9fde8353f94ebcdf470239bba08f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
extends Area
# Member variables
var taken = false
func _on_coin_body_enter(body):
if (not taken and body extends preload("res://player.gd")):
get_node("anim").play("take")
taken = true
|