示例#1
0
        private void UpdateSponsorItemLogo(SponsorItem sponsorItem, SponsorModel sponsorModel)
        {
            foreach (var sponsorLogo in _sponsorLogoData.SponsorLogos)
            {
                if (!string.Equals(sponsorModel.Name, sponsorLogo.Name))
                {
                    continue;
                }

                sponsorItem.SetSponsorLogo(sponsorLogo);
                return;
            }
        }
示例#2
0
        private void FindSponsorModelGroup(SponsorModel sponsorModel)
        {
            foreach (var sponsorGroup in _sponsorGroups)
            {
                var sponsorKeys   = sponsorGroup.SponsorKeys;
                var sponsorModels = sponsorGroup.SponsorModels;

                if (sponsorKeys.Contains(sponsorModel.Id))
                {
                    sponsorModels.Add(sponsorModel);
                    return;
                }
            }
        }
示例#3
0
        //---------------------------------------------------------------------
        // Public
        //---------------------------------------------------------------------

        public void SetSponsorModel(SponsorModel sponsorModel)
        {
            _sponsorName.text = sponsorModel.Name;
            SponsorModel      = sponsorModel;
        }