void Start() { text = transform.GetChild (0).GetComponent<Text> (); qm = QMObj.GetComponent<QuestManager> (); hob = hoverObject.GetComponent<HoverObjectBehaviour> (); rt = this.GetComponent<RectTransform> (); this.GetComponent<Button>().onClick.AddListener(delegate() {sendToManager();}); }
// Use this for initialization void Start() { rt = this.GetComponent<RectTransform> (); hob = hoverObject.GetComponent<HoverObjectBehaviour> (); entryText = transform.GetChild (0).GetComponent<Text> (); }