public ActionButton GetButton() { ActionButton ActButton = Instantiate(Button); if (icon != null) { ActButton.GetComponent <Image>().sprite = icon; ActButton.GetComponentInChildren <Text>().text = ""; } else { ActButton.GetComponentInChildren <Text>().text = this.Name; } ActButton.SetActionToDo(this); return(ActButton); }