2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
extends Area
|
|
|
|
|
2015-11-21 12:31:25 +00:00
|
|
|
# Member variables
|
2014-02-10 01:10:30 +00:00
|
|
|
var taken = false
|
|
|
|
|
|
|
|
|
2015-12-09 07:38:23 +00:00
|
|
|
func _on_coin_body_enter(body):
|
2014-02-10 01:10:30 +00:00
|
|
|
if (not taken and body extends preload("res://player.gd")):
|
|
|
|
get_node("anim").play("take")
|
2015-11-21 12:31:25 +00:00
|
|
|
taken = true
|