public void ApplyConfig(DatePicker_Button button) { if (!OverrideTemplate) { return; } button.Text.color = TextColor; button.Button.colors = BackgroundColors; button.Button.image.sprite = BackgroundImage; }
void SetupHoldButtons() { if (!Application.isPlaying) { return; } var buttons = new DatePicker_Button[] { Ref_Header.NextMonthButton, Ref_Header.PreviousMonthButton, Ref_Header.NextYearButton, Ref_Header.PreviousYearButton }; foreach (var button in buttons) { button.gameObject.AddComponent <DatePicker_HoldButton>(); } }
public void ApplyConfig(DatePicker_Button button) { button.Button.colors = Colors; button.Button.image.sprite = Image; }