Exemplo n.º 1
0
        internal void OnAutoCollectChanged(BaseField field, System.Object obj)
        {
            ScienceAIVesselModule  mod       = vessel.GetComponent <ScienceAIVesselModule>();
            ModuleScienceContainer container = part.FindModuleImplementing <ModuleScienceContainer>();

            if (IsAutoCollect)
            {
                container.CollectAllEvent();
                mod.collectEmpty = IsCollectEmpty;
                mod.reusableOnly = IsReusableOnly;
                mod.Activate();
            }
            else
            {
                mod.Deactivate();
            }
        }