KAS.KASModuleAttachCore.SetCreateJointOnUnpack C# (CSharp) Method

SetCreateJointOnUnpack() private method

private SetCreateJointOnUnpack ( bool newval ) : void
newval bool
return void
        private void SetCreateJointOnUnpack(bool newval)
        {
            if (FixedAttach.createJointOnUnpack != newval) {
              FixedAttach.createJointOnUnpack = newval;

              if (newval) {
            GameEvents.onVesselGoOffRails.Add(new EventData<Vessel>.OnEvent(this.OnVesselGoOffRails));
              } else {
            GameEvents.onVesselGoOffRails.Remove(
            new EventData<Vessel>.OnEvent(this.OnVesselGoOffRails));
              }
            }
        }