void SetDefine(GameDialogStyleDefine value) { if (value == null) { imageComp.sprite = null; Color m_temp = imageComp.color; m_temp.a = 0; imageComp.color = m_temp; } else { //ÉèÖñ³¾°Í¼Æ¬ Color m_temp = imageComp.color; m_temp.a = 1; imageComp.color = m_temp; imageComp.sprite = value.backgroundImage; //ÉèÖÃÎı¾ÑÕÉ« mainTextComp.color = value.mainTextFontColor; } }
private void OnValidate() { StyleDefine = m_styleDefine; }