public void SetStyle(IconButtonStyle style) { imageField.color = style.iconColor; imageField.sprite = style.sprite; var colors = button.colors; colors.normalColor = style.normalColor; colors.highlightedColor = style.highlightColor; colors.pressedColor = style.pressedColor; colors.disabledColor = style.disabledColor; button.colors = colors; }
public IconStateButtonModel(string command, IconButtonStyle style) { this.command = command; this.style = style; }