// PRAGMA MARK - Public Interface public void Init(string text, IconBorderType borderType, Color textColor) { textOutlet_.Text = text; squareBorder_.SetActive(borderType == IconBorderType.Square); circleBorder_.SetActive(borderType == IconBorderType.Circle); textOutlet_.Color = textColor; }
public ActionIconLetterHandler(ActionType actionType, string text, IconBorderType borderType, Color textColor) : base(actionType) { text_ = text; borderType_ = borderType; textColor_ = textColor; }
// PRAGMA MARK - Public Interface public static void RegisterMapping(InputType inputType, ActionType actionType, string text, IconBorderType borderType, Color textColor) { ActionIcons.RegisterHandler(inputType, new ActionIconLetterHandler(actionType, text, borderType, textColor)); }