void SetCards() { homeProgressUI.txtCategory.text = currentCategory.ToString(); switch (currentCategory) { case CharacterSelectionControl.Category.PAINTING: currentStyle = styles[0]; SetStyle(); InstantiatePainting(prefabCardPaint); break; case CharacterSelectionControl.Category.DESIGN: currentStyle = styles[1]; SetStyle(); //homeProgressUI.txtCategory.font = tmp_Fonts[0]; InstantiatePainting(prefabCardPaint); break; case CharacterSelectionControl.Category.PROART: currentStyle = styles[2]; SetStyle(); // homeProgressUI.txtCategory.font = tmp_Fonts[1]; InstantiatePainting(prefabCardProart); break; default: break; } }
public void SetStyle(StyleUI style) { title.color = style.font; title.outlineColor = style.fontshadow; gradientBackground.EffectGradient.SetKeys(style.cardGradient.colorKeys, style.cardGradient.alphaKeys); }