More work on registering via FSM
This commit is contained in:
@@ -9,6 +9,9 @@ var end_shift_confirm_template = preload("res://end_shift_confirmation.tscn")
|
||||
func _ready() -> void:
|
||||
end_shift_confirmation = end_shift_confirm_template.instantiate()
|
||||
add_child(end_shift_confirmation)
|
||||
var file =FileAccess.open("res://name.txt",FileAccess.READ)
|
||||
var text =file.get_line()
|
||||
var nmnames = text.remove_chars(" ").split(",")
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if active and Input.is_action_just_pressed("switch modes"):
|
||||
@@ -28,3 +31,6 @@ func setup_visitor_ui(spawner: VisitorSpawner)-> void:
|
||||
func end_shift() -> void:
|
||||
active = false
|
||||
panel.switch_panel(active)
|
||||
|
||||
func notice(msg : String, time : float = 1) -> void:
|
||||
panel.notice(msg, time)
|
||||
|
||||
Reference in New Issue
Block a user