diff options
Diffstat (limited to 'demos/3d/platformer/coin.gd')
-rw-r--r-- | demos/3d/platformer/coin.gd | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/demos/3d/platformer/coin.gd b/demos/3d/platformer/coin.gd index 8bf1a3460d..bd2eea81e2 100644 --- a/demos/3d/platformer/coin.gd +++ b/demos/3d/platformer/coin.gd @@ -1,23 +1,11 @@ extends Area -# member variables here, example: -# var a=2 -# var b="textvar" - - +# Member variables var taken = false -func _on_coin_body_enter( body ): +func _on_coin_body_enter(body): if (not taken and body extends preload("res://player.gd")): get_node("anim").play("take") - taken=true - - -func _ready(): - # Initalization here - pass - - - + taken = true |