public void UpdatePlatformsManager()
 {
     foreach (Transform child in m_trans)
     {
         PlatformUpdatePosition tmpPlatformUpdatePositionComponent = child.GetComponent <PlatformUpdatePosition>();
         if (tmpPlatformUpdatePositionComponent)
         {
             tmpPlatformUpdatePositionComponent.UpdatePosition();
         }
     }
 }
Ejemplo n.º 2
0
 void UpdatePositionChildren()
 {
     foreach (Transform child in m_trans)
     {
         foreach (Transform childOfChild in child.transform)
         {
             PlatformUpdatePosition tmpPlatformUpdatePositionComponent = childOfChild.GetComponent <PlatformUpdatePosition>();
             if (tmpPlatformUpdatePositionComponent)
             {
                 tmpPlatformUpdatePositionComponent.UpdatePosition();
             }
         }
     }
 }