Exemple #1
0
 public override void SetColors(PaletteConfig config)
 {
     base.SetColors(config);
     config.ApplyToSelectable(TextButton);
     config.ApplyToSelectable(LeftButton);
     config.ApplyToSelectable(RightButton);
 }
 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>());
 }
Exemple #4
0
 public override void SetColors(PaletteConfig config)
 {
     base.SetColors(config);
     config?.ApplyToSelectable(Template);
 }