Example #1
0
 public Builder AddPanelObject(PanelObjectConfig config, bool defaultObject = false)
 {
     _panelObjectConfigs.Add(config);
     if (defaultObject)
     {
         _defaultSelectableKey = config.Key;
     }
     return(this);
 }
Example #2
0
 public Builder InsertPanelObject(PanelObjectConfig config, int index, bool defaultObject = false)
 {
     _panelObjectConfigs.Insert(index, config);
     if (defaultObject)
     {
         _defaultSelectableKey = config.Key;
     }
     return(this);
 }
Example #3
0
 protected GameObject CreatePanelObject(GameObject panel, PanelObjectConfig config)
 {
     return(config.Create(panel));
 }