Setup debug coloring for spawners
This commit is contained in:
@@ -8,7 +8,22 @@ var delay_timer: Timer = null
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
pass
|
||||
_debug_setup()
|
||||
|
||||
|
||||
func _debug_setup() -> void:
|
||||
if not Globals.debugging:
|
||||
visible = false
|
||||
return
|
||||
|
||||
var timer = get_tree().create_timer(0.200)
|
||||
await timer.timeout
|
||||
|
||||
visible = true
|
||||
var visual_node: MeshInstance3D = get_node("visual")
|
||||
var visual_node2: MeshInstance3D = get_node("visual_direction")
|
||||
visual_node.mesh.material.albedo_color = Globals.FactionColor[faction]
|
||||
visual_node2.mesh.material.albedo_color = Globals.FactionColor[faction]
|
||||
|
||||
func _on_area_body_entered(_body: Jet) -> void:
|
||||
if delay_timer:
|
||||
|
||||
Reference in New Issue
Block a user