build update

This commit is contained in:
Nikolai Fesenko
2025-08-14 18:07:45 +02:00
parent 248ef3b912
commit 8ef9cf5971
6 changed files with 77 additions and 26 deletions

View File

@@ -1,6 +1,5 @@
extends Node3D
@export var debugLabel1: Label
@onready var build_material = load("res://Shaders/build_transparent.gdshader")
signal exit_build_mode
signal enter_build_mode
@@ -8,12 +7,11 @@ signal enter_build_mode
signal preview_created
signal preview_destroyed
signal object_placed
var build_mode: bool = false
func _ready() -> void:
build_material.set("alpha", 0.5)
func _input(event: InputEvent) -> void:
if event.is_action_released("enter_build_mode"):
if build_mode: