Exemple #1
0
 private void UpdateAllSnapPoints(Transform parent)
 {
     Transform[] children = parent.GetComponentsInChildren <Transform>();
     foreach (Transform transform in children)
     {
         ISnapPoint iSnapPoint = transform.GetComponent <ISnapPoint>();
         if (iSnapPoint != null)
         {
             iSnapPoint.UpdateSnapPoints();
         }
     }
 }