protected virtual bool can_launch() { if (vessel_spawner.LaunchInProgress) { return(false); } if (Empty) { Utils.Message("Nothing to launch: container is empty."); return(false); } if (vessel.packed) { Utils.Message("Cannot launch from a packed construction kit."); return(false); } if (!kit.Complete) { Utils.Message("Construction is not complete yet."); return(false); } if (!kit.BlueprintComplete()) { Utils.Message("Something went wrong. Not all parts were properly constructed."); return(false); } return(true); }
public void Launch() { if (vessel_spawner == null || vessel_spawner.LaunchInProgress) { return; } if (Empty) { Utils.Message("Nothing to launch: container is empty."); return; } if (vessel.packed) { Utils.Message("Cannot launch from a packed construction kit."); return; } if (!Kit.Complete) { Utils.Message("Construction is not complete yet."); return; } if (!Kit.BlueprintComplete()) { Utils.Message("Something went wrong. Not all parts were properly constructed."); return; } StartCoroutine(launch_complete_construct()); }