extends Node3D func quit_game() -> void: get_tree().quit() # Quit the game func _unhandled_input(event: InputEvent) -> void: if event.is_action_pressed("quit-game"): quit_game() # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(_delta: float) -> void: pass func _on_mushroom_picked() -> void: print("Player picked all mushrooms!") #quit_game()