buckshotroulette-decomp/Debugging.gd

13 lines
329 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
func _unhandled_input(event):
if (debugging):
if (event.is_action_pressed(",")):
Engine.time_scale = 1
timescale.moving = false
if (event.is_action_pressed(".")):
Engine.time_scale = 10
timescale.moving = false