コード例 #1
0
 public void SetHeader(string headerText)
 {
     if (selectionPanel == null)
     {
         selectionPanel = GetComponent <SelectionPanel>();
     }
     selectionPanel.SetHeader(headerText);
 }
コード例 #2
0
        public void SetOptionList(List <ISelectionItem> selectionOptions, string headerText, int startSelectionIndex = 0)
        {
            selectionItems = selectionOptions;
            List <string> options = new List <string>();

            foreach (var option in selectionOptions)
            {
                options.Add(option.GetName());
            }

            if (selectionPanel == null)
            {
                selectionPanel = GetComponent <SelectionPanel>();
            }
            selectionPanel.SetOptionList(options, headerText, startSelectionIndex);
        }