2016-09-05 04:14:23 +02:00
|
|
|
|
|
|
|
extends Area2D
|
|
|
|
|
|
|
|
# Member variables
|
|
|
|
var taken = false
|
|
|
|
|
|
|
|
|
|
|
|
func _on_body_enter( body ):
|
2017-06-25 13:00:20 +02:00
|
|
|
if (not taken and body is preload("res://player.gd")):
|
2016-09-05 04:14:23 +02:00
|
|
|
get_node("anim").play("taken")
|
|
|
|
taken = true
|
|
|
|
|
|
|
|
|
|
|
|
func _on_coin_area_enter(area):
|
|
|
|
pass # replace with function body
|
|
|
|
|
|
|
|
|
|
|
|
func _on_coin_area_enter_shape(area_id, area, area_shape, area_shape):
|
|
|
|
pass # replace with function body
|