void Start() { // hack to avoid specifying references manually if (mouseTooltipObject == null) { mouseTooltipObject = FindObjectOfType <MichTooltip>().gameObject; var components = mouseTooltipObject.gameObject.GetComponentsInChildren <TextMeshProUGUI>(); mouseTitle = components[0]; mouseDescription = components[1]; } mouseAnimator = mouseTooltipObject.GetComponent <Animator>(); mouseBlur = mouseTooltipObject.GetComponent <BlurManager>(); }
void Start() { mouseAnimator = mouseTooltipObject.GetComponent <Animator>(); mouseBlur = mouseTooltipObject.GetComponent <BlurManager>(); }