Esempio n. 1
0
 void UpdateText()
 {
     if (bgMesh != null)
     {
         bgMesh.SetColor(BackgroundColor);
     }
     if (textMesh != null)
     {
         textMesh.SetColor((Enabled) ? TextColor : DisabledTextColor);
         textMesh.SetText(Text);
     }
 }
Esempio n. 2
0
 void UpdateText()
 {
     if (bgMesh != null)
     {
         bgMesh.SetColor(BackgroundColor);
     }
     if (textMesh != null)
     {
         textMesh.SetColor(TextColor);
         textMesh.SetText(Text);
     }
     if (titleTextMesh != null)
     {
         titleTextMesh.SetColor(TitleTextColor);
         titleTextMesh.SetText(TitleText);
     }
 }