diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-09 09:10:00 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-09 09:10:00 -0300 |
commit | aadced2f72476f637c6c14e48d3811e088eda951 (patch) | |
tree | 34df51f29d92225f28dcdfc495b8796ae7430ceb /demos/3d/platformer/coin.gd | |
parent | 6bc6b8fcf24bdfcae4a990054c9077e1bc5a87e5 (diff) | |
parent | db9da152765357c5e484792fc5e31a25acbc7616 (diff) |
Merge branch 'master' of https://github.com/godotengine/godot
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 |