extends Node2D @onready var building_levels = [ $Level2/BuildingLevel2, $Level3/BuildingLevel3, $Level4/BuildingLevel4, $Level5/BuildingLevel5, $BuildingLevel6 ] func _process(delta: float) -> void: if Input.is_action_just_released("lclick"): if Persister.get_value("drag_mode") and Persister.get_value("building_mode"): for build_level in building_levels: build_level.place_building() Persister.persist_data("building_mode", false)