예제 #1
0
 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;
     }
 }
예제 #2
0
 private void OnValidate()
 {
     StyleDefine = m_styleDefine;
 }