private IsActiveDecoupler ( Part thePart ) : bool | ||
thePart | Part | |
Résultat | bool |
private bool IsActiveDecoupler(Part thePart)
{
return thePart.FindModulesImplementing<ModuleDecouple>().Any(mod => !mod.isDecoupled) ||
thePart.FindModulesImplementing<ModuleAnchoredDecoupler>().Any(mod => !mod.isDecoupled);
}