public void AdjustScaling() { ScalingGroup scaler = gameObject.GetComponentInParent<ScalingGroup>(); if (scaler != null) { scaler.AdjustChildren(); } }
public virtual bool ShouldShowAdjustScalingButton() { ScalingGroup scaler = gameObject.GetComponentInParent<ScalingGroup>(); if (scaler != null) { return true; } else { return false; } }