Beispiel #1
0
 public override void SetColors(PaletteConfig config)
 {
     base.SetColors(config);
     config.ApplyToSelectable(TextButton);
     config.ApplyToSelectable(LeftButton);
     config.ApplyToSelectable(RightButton);
 }
Beispiel #2
0
 public virtual void SetColors(PaletteConfig config)
 {
     if (config != null)
     {
         foreach (Selectable select in GetComponentsInChildren <Selectable>())
         {
             config.ApplyToSelectable(select);
         }
         foreach (HighlightTextWhenSelected highlight in GetComponentsInChildren <HighlightTextWhenSelected>())
         {
             highlight.SelectColor = config.SelectedColor;
         }
     }
 }
 private void Awake()
 {
     Palette?.ApplyToSelectable(GetComponent <Selectable>());
 }
Beispiel #4
0
 public override void SetColors(PaletteConfig config)
 {
     base.SetColors(config);
     config?.ApplyToSelectable(Template);
 }