Example #1
0
 public void init(object data)
 {
     chapter = (Chapter)data;
     if(chapter.isUnlocked()){
         textName.text = Localization.instance.Get("UI_ChapterName_"+chapter.id);
         textStars.text = string.Format("{0}/{1}",chapter.winStars,chapter.passStars);
         lockedGroup.SetActive(false);
         unlockedGroup.SetActive(true);
     }else{
         lockedGroup.SetActive(true);
         unlockedGroup.SetActive(false);
     }
 }