protected override void SetReferences() { base.SetReferences(); toggle = GetComponentInChildren <ToggleController>(); controller = GetComponentInParent <LMessengerScreenController>(); responseButtons = GetComponentsInChildren <LToggleableUIButton>(); ExpandPanel.SetActive(false); }
void runInit() { controller = GetComponentInParent <LMessengerScreenController>(); highlight = GetComponent <NotificationHighlight>(); ContactImage = transform.GetChild(0).gameObject; ContactName = transform.GetChild(1).gameObject; UnreadMessageCount = transform.GetChild(2).gameObject; contactImageMask = ContactImage.GetComponentInChildren <Mask> ().transform; contactImageDisplay = contactImageMask.GetChild(0).GetComponent <Image>(); contactNameDisplay = ContactName.GetComponent <Text>(); }