new build mechanic

This commit is contained in:
Nikolai Fesenko
2025-08-13 21:00:22 +02:00
parent 67182b4ccd
commit 43fb8410c3
12 changed files with 123 additions and 36 deletions

17
Scripts/global_script.gd Normal file
View File

@@ -0,0 +1,17 @@
extends Node3D
@export var debugLabel1: Label
signal exit_build_mode
var build_mode: bool = false
func _input(event: InputEvent) -> void:
if event.is_action_released("enter_build_mode"):
if build_mode:
exit_build_mode.emit()
build_mode = false
else:
build_mode = true