public void Setup(PopupMenu menu, PopupButton entry) { this.menu = menu; this.entry = entry; label.text = entry.Label; }
public void Display(string header, params PopupButton[] buttons) { ButtonPool.Flush(); BackgroundFade.Target = true; for (int i = 0; i < buttons.Length; i++) { PopupButton button = buttons[i]; UIPopupButton uiButton = ButtonPool.Grab(ButtonsHolder); uiButton.Setup(this, button); } Dialogue.SetActive(true); }