protected virtual void Start() { _colors = FindObjectOfType <AppColors>(); ColorBlock buttonColors = _target.colors; buttonColors.highlightedColor = _colors.Get(AppColors.Type.Highlighted); buttonColors.normalColor = _colors.Get(AppColors.Type.Interactable); buttonColors.selectedColor = _colors.Get(AppColors.Type.Selected); _target.colors = buttonColors; }
protected virtual void Start() { _colors = FindObjectOfType <AppColors>(); _graphic.color = _colors.Get(AppColors.Type.Interactable); _selectable.OnSelected += updateColor; _selectable.OnDeselected += updateColor; updateColor(); }
private void updateColor() { _graphic.color = _selectable.Selected ? _colors.Get(AppColors.Type.Selected) : _colors.Get(AppColors.Type.InteractionElementBackground); }
private void onSelect(string arg0) { _icon.color = _appColors.Get(AppColors.Type.Selected); }
protected virtual void Start() { _colors = FindObjectOfType <AppColors>(); _target.color = _colors.Get(_type); }