/// <summary> /// Обновляет данные игрока /// </summary> private static IEnumerable <RapperModel> GetRatingList(PlayerInfo playerInfo) { var rappers = RappersManager.GetRappers(); var ratingList = new RapperModel[rappers.Count + 1]; rappers.CopyTo(ratingList); ratingList[rappers.Count] = new RapperModel { Name = playerInfo.Name, Fans = playerInfo.Fans }; return(ratingList); }
/// <summary> /// Открывает страницу /// </summary> public override void OpenPage() { var playerSkills = PlayerManager.GetSkills(); FillDrowdown(RivalDropdown, RappersManager.GetRappers().Select(e => e.Name).ToList()); FillDrowdown(TextSourceDropdown, playerSkills.TextSourses.Select(e => e.GetDescription()).ToList()); FillDrowdown(StrategyDropdown, playerSkills.BattleStrategies.Select(e => e.GetDescription()).ToList()); CheckSocialToggle.gameObject.SetActive(playerSkills.CanCheckSocials); OnSettingChange(); gameObject.SetActive(true); }
/// <summary> /// Открыть страницу /// </summary> public override void OpenPage() { var playerSkills = PlayerManager.GetSkills(); FillDropdown(TrackTheme, playerSkills.TrackThemes); FillDropdown(TrackStyle, playerSkills.TrackStyles); FillDropdown(TrackText, playerSkills.TextSourses); FillDropdown(TrackBit, playerSkills.BitSources); var rappers = RappersManager.GetRappers().Select(e => e.Name).ToList(); rappers.Insert(0, NO_FEAT); FillDropDown(Feat, rappers); ShowDurationAndPriceInfo(); AutotuneToggle.gameObject.SetActive(PlayerManager.GetProperty().HasAutotune); gameObject.SetActive(true); }