diff options
author | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 03:40:41 +0200 |
---|---|---|
committer | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 03:40:41 +0200 |
commit | d3f6967fe666595cf0862be57a3dae3bb23afd24 (patch) | |
tree | 7e6f90f9a3116431dc761fdd4167b58f4b59ec43 /godot/scenes/Die.gd | |
parent | 690e705de1e8b8babbb7bf86f55a5dbae559488b (diff) | |
download | 2022-d3f6967fe666595cf0862be57a3dae3bb23afd24.tar.gz 2022-d3f6967fe666595cf0862be57a3dae3bb23afd24.tar.bz2 2022-d3f6967fe666595cf0862be57a3dae3bb23afd24.zip |
asset for the goal trigger
Diffstat (limited to 'godot/scenes/Die.gd')
-rw-r--r-- | godot/scenes/Die.gd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/godot/scenes/Die.gd b/godot/scenes/Die.gd index 21a408e..7d07a6f 100644 --- a/godot/scenes/Die.gd +++ b/godot/scenes/Die.gd @@ -32,8 +32,14 @@ func _ready(): mat = get_physics_material_override() previous_bounciness = mat.get_bounce() + func _input(event): + if _game.is_post_game(): + if event is InputEventMouseButton || event is InputEventKey: + _game.next_level() + return + if event is InputEventKey: if event.scancode == KEY_TAB: if event.is_pressed(): |