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