mirror of
https://github.com/thecatontheceiling/buckshotroulette-decomp.git
synced 2024-11-25 23:17:22 +00:00
11 lines
258 B
GDScript3
11 lines
258 B
GDScript3
|
class_name ResetManager extends Node
|
||
|
|
||
|
@export var save : SaveFileManager
|
||
|
var fs = false
|
||
|
|
||
|
func _unhandled_input(event):
|
||
|
if (event.is_action_pressed("reset") && !fs):
|
||
|
save.ClearSave()
|
||
|
get_tree().change_scene_to_file("res://scenes/death.tscn")
|
||
|
fs = true
|