void MakeAttributeSlots() { if (attributes) { for (int i = 0; i < attributes.playerAttributes.Count; i++) { GameObject temp = Instantiate(attributeSlot, attributePanel.transform.position, Quaternion.identity); temp.transform.SetParent(attributePanel.transform); AttributeSlot newSlot = temp.GetComponent <AttributeSlot>(); newSlot.Setup(attributes.playerAttributes[i]); newSlot.gameObject.transform.localScale = new Vector3(1, 1, 1); //??? } } }