public void SaveLevels(Model_SaveData data) { levelBehaviors = transform.GetComponentsInChildren <Script_SaveLoadLevelBehavior>(true); foreach (Script_SaveLoadLevelBehavior LB in levelBehaviors) { LB.Save(data.runData); } }