private void SetSelectedIconIndex(int index) { if (index != selectedIconIndex) { if (selectedIcon) { selectedIcon.transform.localScale = new Vector3(1f, 1f, 1f); } selectedIconIndex = index; selectedIcon = currentMenuLayer.buttonsInfo[index].associatedButton; selectedIcon.transform.localScale = new Vector3(scaleOfSelectedIcon, scaleOfSelectedIcon, scaleOfSelectedIcon); descriptionText.SetIconDescription(selectedIcon.GetComponent <MenuCreateButton>().name); } }