Exemple #1
0
        private void UpdateView()
        {
            if (_mail is null)
            {
                Hide();
                return;
            }

            var isNew = _mail.New;

            button.gameObject.SetActive(isNew);
            unseal.SetActive(!isNew);
            iconImage.overrideSprite = SpriteHelper.GetMailIcon(_mail.MailType);

            content.text  = _mail.ToInfo();
            content.color = isNew
                ? ColorHelper.HexToColorRGB("fff9dd")
                : ColorHelper.HexToColorRGB("7a7a7a");
        }