buckshotroulette-decomp/Debugging.gd

14 lines
347 B
GDScript3
Raw Normal View History

class_name Debug extends Node
2024-04-10 19:19:04 +01:00
@export var debugging : bool
@export var timescale : TimeScaleManager
2024-11-16 11:24:36 +00:00
2024-04-10 19:19:04 +01:00
func _unhandled_input(event):
2024-11-16 11:24:36 +00:00
if GlobalVariables.mp_debugging:
2024-04-10 19:19:04 +01:00
if (event.is_action_pressed(",")):
Engine.time_scale = 1
timescale.moving = false
if (event.is_action_pressed(".")):
Engine.time_scale = 10
timescale.moving = false