private DecoupledInStage ( Part thePart, int stage = -1 ) : int | ||
thePart | Part | |
stage | int | |
return | int |
private int DecoupledInStage(Part thePart, int stage = -1)
{
if (IsDecoupler(thePart))
{
if (thePart.inverseStage > stage)
{
stage = thePart.inverseStage;
}
}
if (thePart.parent != null)
{
stage = DecoupledInStage(thePart.parent, stage);
}
return stage;
}