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
|
||||
|
||||
Reference in New Issue
Block a user