Пример #1
0
 public void AdjustScaling()
 {
     ScalingGroup scaler = gameObject.GetComponentInParent<ScalingGroup>();
     if (scaler != null)
     {
         scaler.AdjustChildren();
     }
 }
Пример #2
0
 public virtual bool ShouldShowAdjustScalingButton()
 {
     ScalingGroup scaler = gameObject.GetComponentInParent<ScalingGroup>();
     if (scaler != null)
     {
         return true;
     }
     else
     {
         return false;
     }
 }