void OnAchievElementDraw(Transform achievObject, AchievementManager.Achievement achieve) { //AchievementManager.Achievement achieve = AchievementManager.GetInstance().GetAchieveById(achievObject.name); UISlicedSprite slisedSprite = achievObject.Find("BG").GetComponent<UISlicedSprite>(); UILabel title = achievObject.Find("Title").GetComponent<UILabel>(); UILabel description = achievObject.Find("Description").GetComponent<UILabel>(); UILabel progress = achievObject.Find("Progress").GetComponent<UILabel>(); title.text = achieve.name; description.text = achieve.description; progress.text = achieve.IsCompleted() ? "" : achieve.GetProgressText(); slisedSprite.spriteName = achieve.IsCompleted() ? "Glow" : "Dark"; }