Exemple #1
0
 private void UpdateSymParts()
 {
     foreach (Part p in part.symmetryCounterparts)
     {
         ModuleMotionDetector m = p.Modules.GetModule <ModuleMotionDetector> ();
         if (applyToSymPart)
         {
             m.motionDetectorEnabled = motionDetectorEnabled;
             m.range    = range;
             m.rangeNew = range;
             m.timer    = timer;
             m.timerNew = timer;
             m.UpdateMeshScale();
             m.ResetGUIName();
         }
         m.applyToSymPart    = applyToSymPart;
         m.applyToSymPartNew = applyToSymPart;
     }
 }
Exemple #2
0
 void Start()
 {
     module = this.GetComponentInParent <ModuleMotionDetector> ();
 }