Skip to content

Commit

Permalink
chore: add check on debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pierpo committed Jul 18, 2022
1 parent cdfaf90 commit fa9a3df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Bears/GenericBear/Scripts/GenericBear.gd
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ func _parse_inputs() -> void:
# Virtual function to override
# Used to handle logic of the bear
func _update(_delta) -> void:
if Input.is_action_just_pressed("debug_2"):
_talk()
pass

func _update_velocity() -> void:
Expand Down
2 changes: 1 addition & 1 deletion World/World.gd
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func _next_day_cycle_phase() -> void:
_fade_light(canvas_modulate.get_color(), _day_cycle_phase.duration)

func _input(event) -> void:
if event.is_action_pressed("debug_1"):
if OS.is_debug_build() and event.is_action_pressed("debug_1"):
_next_day_cycle_phase()

func _on_DayCycleTween_tween_completed(_object, _key) -> void:
Expand Down
6 changes: 4 additions & 2 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,13 @@ p1_secondary_action={
}
debug_1={
"deadzone": 0.5,
"events": [ ]
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":49,"unicode":0,"echo":false,"script":null)
]
}
debug_2={
"deadzone": 0.5,
"events": [ ]
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":50,"unicode":0,"echo":false,"script":null)
]
}

[physics]
Expand Down

0 comments on commit fa9a3df

Please sign in to comment.