void Awake() { MainButton = GetComponent <Button>(); m_MenuText = GetComponentInChildren <Text>(); m_MenuText.text = m_MenuName; m_RadLayout = new GameObject("Radial Layout").AddComponent <RadialLayout>(); m_RadLayout.transform.SetParent(transform); m_RadLayout.transform.localPosition = Vector3.zero; m_RadLayout.MaxAngle = m_AngleRange; m_RadLayout.StartAngle = m_StartAngle; int index = m_RadLayout.transform.GetSiblingIndex(); m_RadLayout.transform.SetSiblingIndex(index - 1); SetButtonSize(m_ButtonSizeMain, m_ButtonSizeChild); }