Esempio n. 1
0
 private void SetName(TabData data)
 {
     if (NameLabel != null)
     {
         var tabelName = data.Name;
         if (!string.IsNullOrEmpty(tabelName))
         {
             NameLabel.text = tabelName;
             if (DownNameLabel != null)
             {
                 DownNameLabel.text = tabelName;
             }
         }
         return;
     }
     if (TableUpSprite != null)
     {
         TableUpSprite.spriteName = string.Format(TableUpSpriteFormat, data.UpStateName);
     }
     if (TableDownSprite != null)
     {
         TableDownSprite.spriteName = string.Format(TableDownSpriteFormat, data.DownStateName);
     }
 }