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