outline update
This commit is contained in:
@@ -1,17 +1,23 @@
|
||||
extends Node3D
|
||||
|
||||
@onready var beds = preload("res://Scenes/Prefabs/DoubleBeds.tscn")
|
||||
|
||||
@export var cartTop: MeshInstance3D
|
||||
@export var mainCamera: Camera3D
|
||||
|
||||
var nav_mesh: NavigationMesh
|
||||
var previewObject
|
||||
var targetPos
|
||||
|
||||
func _ready() -> void:
|
||||
pass
|
||||
Global.object_placed.connect(_on_object_placed)
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("hide_top"):
|
||||
cartTop.visible = !cartTop.visible
|
||||
#add_preview()
|
||||
|
||||
|
||||
func _on_object_placed(build_postion):
|
||||
var newObject = BuildManager.get_preview_object().instantiate()
|
||||
newObject.global_position = build_postion
|
||||
self.add_child(newObject)
|
||||
|
||||
Reference in New Issue
Block a user