14 lines
347 B
GDScript3
Raw Normal View History

class_name Debug extends Node
2024-04-10 22:19:04 +04:00
@export var debugging : bool
@export var timescale : TimeScaleManager
2024-11-16 15:24:36 +04:00
2024-04-10 22:19:04 +04:00
func _unhandled_input(event):
2024-11-16 15:24:36 +04:00
if GlobalVariables.mp_debugging:
2024-04-10 22:19:04 +04: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