public CoaxSleepAudioDescJsonData Clone() { CoaxSleepAudioDescJsonData data = new CoaxSleepAudioDescJsonData(); data.AudioId = AudioId; data.Time = Time; data.Desc = Desc; return(data); }
public string OnPlayBgPath; //播放界面背景 public MyCoaxSleepAudioData(CoaxSleepAudioRulePB rule, UserCoaxSleepInfoPB userInfos, CoaxSleepAudioDescJsonData descJsonData) { AudioId = rule.AudioId; PlayerPb = rule.Player; AudioName = rule.AudioName; AudioDesc = rule.AudioDesc; CoaxUnlockGoals = rule.CoaxUnlockGoals.ToList(); UnlockDesc = rule.UnlockDesc; PlayTimes = descJsonData.Time; RetrospectDesc = descJsonData.Desc; SetGemAndUnlockLoveNum(); SetIsUnlock(userInfos); SetNpcName(); IsOnlyGemUnlock = CoaxUnlockGoals.Count == 1 && CoaxUnlockGoals[0].Gem != 0; ItemBgPath = "CoaxSleep/PlayerIcon_" + (int)PlayerPb; OnPlayBgPath = "CoaxSleep/" + (int)PlayerPb; SetPlayTimeStr(); }