public void Start() { if (WorldContainer == null) { Debug.LogError("Controller doesn't have container for UI elements", this); return; } UpdatingComponents = WorldContainer.GetComponentsInChildren <UpdatingComponent>().ToList(); Debug.Log("Setting UI controls for " + WorldContainer.name + "UpdatingComponents are: " + UpdatingComponents, this); foreach (var updComponent in UpdatingComponents) { UpdatingComponent popupUpdComp = UpdatingComponent.Instantiate(updComponent.UIPrefab); popupUpdComp.transform.SetParent(UIContainter, false); popupUpdComp.Mirror(updComponent); } }