Esempio n. 1
0
        public void Init(Trophy trophy)
        {
            Group.alpha      = trophy.Unlocked ? 1f : .6f;
            Title.text       = trophy.Title;
            Description.text = trophy.Description;

            if (trophy.Image != null)
            {
                Image.sprite = trophy.Image;
            }
            else
            {
                trophy.DownloadImage((success) => {
                    if (success)
                    {
                        Image.sprite = trophy.Image;
                    }
                });
            }
        }