diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2015-12-09 08:49:06 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2015-12-09 08:49:06 +0100 |
commit | db9da152765357c5e484792fc5e31a25acbc7616 (patch) | |
tree | f58497abcecc0a74d3d12132f134a5e0b279cc24 /demos/3d/platformer/coin.gd | |
parent | efbb834936fdc9da9789ad37c9cc61e0b90cda95 (diff) | |
parent | 52d515b611ed1f593e23b0adabedbd9fd59dc7db (diff) |
Merge pull request #2853 from akien-mga/pr-demos-code-formatting
Improve demos code formatting and update to 2.0
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 |