/// <summary> /// Обновляет данные баттла /// </summary> protected override void ParseActionModel() { if (battleModel == null) { battleModel = new VersusBattleModel(); } battleModel.Rival = RappersManager.GetByName(RivalDropdown.captionText.text); battleModel.TextSourse = EnumExt.GetFromDescription <TextSourse>(TextSourceDropdown.captionText.text); battleModel.Strategy = EnumExt.GetFromDescription <BattleStrategy>(StrategyDropdown.captionText.text); battleModel.CheckSocials = CheckSocialToggle.isOn; }
/// <summary> /// Собирает выбранные параметры в модель трэка /// </summary> protected override void ParseActionModel() { if (_track == null) { _track = new NewTrackModel(); } _track.Name = TrackName.text; _track.Theme = EnumExt.GetFromDescription <TrackTheme>(TrackTheme.captionText.text); _track.Style = EnumExt.GetFromDescription <TrackStyle>(TrackStyle.captionText.text); _track.TextSourse = EnumExt.GetFromDescription <TextSourse>(TrackText.captionText.text); _track.BitSource = EnumExt.GetFromDescription <BitSource>(TrackBit.captionText.text); _track.Feat = RappersManager.GetByName(Feat.captionText.text); _track.Autotune = AutotuneToggle.isOn; }