コード例 #1
0
 public void UpdatePlatformsManager()
 {
     foreach (Transform child in m_trans)
     {
         PlatformUpdatePosition tmpPlatformUpdatePositionComponent = child.GetComponent <PlatformUpdatePosition>();
         if (tmpPlatformUpdatePositionComponent)
         {
             tmpPlatformUpdatePositionComponent.UpdatePosition();
         }
     }
 }
コード例 #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();
             }
         }
     }
 }