new build mechanic
This commit is contained in:
17
Scripts/global_script.gd
Normal file
17
Scripts/global_script.gd
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user