Exemplo n.º 1
0
 private void Awake()
 {
     this.items          = new List <Dictionary <string, object> >();
     this.restController = this.gameObject.GetComponent <NCMBRestController>();
     this.settings       = this.gameObject.GetComponent <RankingSettings>();
     this.appearance     = this.gameObject.GetComponent <BoardAppearance>();
     this.SetupListView();
 }
Exemplo n.º 2
0
 public void SetAppearance(BoardAppearance appearance)
 {
     if (appearance.Font != null)
     {
         this.rank.font     = appearance.Font;
         this.nickname.font = appearance.Font;
         this.score.font    = appearance.Font;
     }
     this.rank.color        = appearance.TextColor;
     this.rank.fontSize     = appearance.RankingFontSize;
     this.nickname.color    = appearance.TextColor;
     this.nickname.fontSize = appearance.RankingFontSize;
     this.score.color       = appearance.TextColor;
     this.score.fontSize    = appearance.RankingFontSize;
     this.separator.color   = appearance.SeparatorColor;
 }