// Start is called before the first frame update void Start() { img = this.GetComponentInChildren <Image>(); uiText = this.GetComponentInChildren <Text>(); last = FindObjectOfType <ClickRemove>(); defHeight = img.rectTransform.sizeDelta.y; }
public void fail(ClickRemove click) { title = click.name; information = click.description; information += "\n" + click.getRequirements(); if (displaying) { anim.SetTrigger("Hide"); } else { updateInfo(); } displaying = true; anim.SetTrigger("Display"); }
public void updateInfo(string information, ClickRemove last) { this.information = information; this.last = last; }