17 lines
292 B
GDScript
17 lines
292 B
GDScript
|
class_name PuzzleManager
|
||
|
extends Node
|
||
|
|
||
|
signal finish_room
|
||
|
|
||
|
@export var mandatory_puzzles: Array[Puzzle]
|
||
|
@export var optional_puzzles: Array[Puzzle]
|
||
|
|
||
|
func _process(delta):
|
||
|
pass
|
||
|
|
||
|
func is_room_finished():
|
||
|
for puzzle in mandatory_puzzles:
|
||
|
if !puzzle.is_complete:
|
||
|
return false
|
||
|
return true
|