2024-09-09 01:17:35 +00:00
|
|
|
extends Node2D
|
2024-09-14 22:01:46 +00:00
|
|
|
|
|
|
|
@onready var building_levels = [
|
2024-09-15 01:09:17 +00:00
|
|
|
$Node2D/Level2/BuildingLevel2,
|
|
|
|
$Node2D/Level3/BuildingLevel3,
|
|
|
|
$Node2D/Level4/BuildingLevel4,
|
|
|
|
$Node2D/Level5/BuildingLevel5,
|
|
|
|
$Node2D/BuildingLevel6
|
2024-09-14 22:01:46 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
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)
|