load jets to a collection; wire up cpu controller pattern
This commit is contained in:
@@ -40,6 +40,8 @@ func spawn_jet(faction: Globals.Faction, callback: Callable) -> Jet:
|
||||
if not spawner.is_available: continue
|
||||
|
||||
jet = callback.call(faction)
|
||||
jets_collection.add_child.call(jet)
|
||||
|
||||
spawner.align_to_position.call_deferred(jet)
|
||||
|
||||
return jet
|
||||
|
||||
@@ -16,9 +16,6 @@ func _debug_setup() -> void:
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user