Пример #1
0
        private void UpdateWingInteractionsPart(ConstructionEventType type, Part p)
        {
            EditorPartsChanged = true;
            FARWingAerodynamicModel w = p.GetComponent <FARWingAerodynamicModel>();

            if ((object)w != null)
            {
                if (type == ConstructionEventType.PartAttached)
                {
                    w.OnWingAttach();
                }
                else if (type == ConstructionEventType.PartDetached)
                {
                    w.OnWingDetach();
                }
                w.EditorUpdateWingInteractions();
            }
        }