added user action
This commit is contained in:
@@ -7,7 +7,7 @@ extends Node3D
|
||||
|
||||
var default_shaders: Array
|
||||
var staic_body: StaticBody3D
|
||||
|
||||
var ActionNode: Node3D
|
||||
|
||||
func _ready() -> void:
|
||||
BuildManager.preview_created.connect(_on_preview_create)
|
||||
@@ -17,9 +17,9 @@ func _ready() -> void:
|
||||
staic_body = $StaticBody3D
|
||||
staic_body.mouse_entered.connect(_on_mouse_enter)
|
||||
staic_body.mouse_exited.connect(_on_mouse_exit)
|
||||
print(staic_body)
|
||||
|
||||
|
||||
|
||||
ActionNode = $ActionNode
|
||||
|
||||
func set_default_shaders():
|
||||
var amount_shaders = meshInstance.get_surface_override_material_count()
|
||||
default_shaders.resize( amount_shaders)
|
||||
@@ -53,7 +53,8 @@ func _on_preview_create():
|
||||
|
||||
|
||||
func _on_object_placed(build_postion):
|
||||
|
||||
#BuildManager.add_object_to_array(self)
|
||||
#print(ActionNode.global_position)
|
||||
restore_default_shaders()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user