IEnumerator <YieldInstruction> spawn_kit_vessel(ShipConstruct kit_ship) { //spawn the ship construct var bounds = kit_ship.Bounds(kit_ship.Parts[0].localRoot.transform); yield return (StartCoroutine(vessel_spawner .SpawnShipConstruct(kit_ship, SpawnManager.GetSpawnTransform(bounds), SpawnManager.GetSpawnOffset(bounds) - bounds.center, Vector3.zero))); Kit = new VesselKit(); Open(); }
protected override Vector3 get_deployed_offset() => SpawnManager.GetSpawnOffset(Size);