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; } }
void Start() { module = this.GetComponentInParent <ModuleMotionDetector> (); }