public static Prompt Create(RectTransform parent, string description, params Option[] options) { GameObject pref = ABU.LoadAsset <GameObject> ("core", "Prompt"); GameObject inst = Instantiate(pref, parent, false); Prompt p = inst.GetComponent <Prompt> (); p.description.text = description; foreach (Option o in options) { p.AddOption(o); } return(p); }