private void checkForExp()
 {
     if (node != null && node.attachedPart != null)
     {
         KEESExperiment newExp = node.attachedPart.GetComponent <KEESExperiment>();
         if (newExp != null)
         {
             if (exp == null)
             {
                 exp = newExp;
                 exp.dockedToPEC(true);
                 NE_Helper.log("New KEES Experiment installed");
             }
             else if (exp != newExp)
             {
                 exp.dockedToPEC(false);
                 exp = newExp;
                 exp.dockedToPEC(true);
                 NE_Helper.log("KEES Experiment switched");
             }
         }
         else if (exp != null)
         {
             exp.dockedToPEC(false);
             NE_Helper.log("KEES Experiment undocked");
             exp = null;
         }
     }
 }
 private void decouple()
 {
     decoupled = true;
     part.decouple();
     if (exp != null)
     {
         exp.pecDecoupled();
     }
     exp = null;
 }
 private void checkForExp()
 {
     if (node != null && node.attachedPart != null)
     {
         KEESExperiment newExp = node.attachedPart.GetComponent<KEESExperiment>();
         if (newExp != null)
         {
             if (exp == null)
             {
                 exp = newExp;
                 exp.dockedToPEC(true);
                 NE_Helper.log("New KEES Experiment installed");
             }
             else if (exp != newExp)
             {
                 exp.dockedToPEC(false);
                 exp = newExp;
                 exp.dockedToPEC(true);
                 NE_Helper.log("KEES Experiment switched");
             }
         }
         else if (exp != null)
         {
             exp.dockedToPEC(false);
             NE_Helper.log("KEES Experiment undocked");
             exp = null;
         }
     }
 }
 private void decouple()
 {
     decoupled = true;
     part.decouple();
     if (exp != null)
     {
         exp.pecDecoupled();
     }
     exp = null;
 }