private void SetPartQuality(ItemQuality itemQuality, float alpha = 1f) { var color = _iconUtil.GetQualityColor(itemQuality); if (itemQuality == ItemQuality.Common) { alpha = 0f; } quality.color = new Color(color.r, color.g, color.b, alpha); }
private void SetPartQuality(ItemQuality itemQuality) { var color = _iconUtil.GetQualityColor(itemQuality); quality.color = new Color(color.r, color.g, color.b, 1f); }
private void SetQualityIcon(ItemQuality quality, bool active) { qualityImage.enabled = active; qualityImage.color = _iconUtil.GetQualityColor(quality); }