private void FirstSession(long currentTime) { _player.State.RegisterTime = currentTime.ToString(); _explorer.State.IsRun = false; _explorer.State.StageId = -1; _player.UpgradeLevel(0); foreach (var temp in _shop.Static.GoodGroups) { var group = _shop.GetGroup(temp.Key); if (group.Period == 0) { _shopLogic.UpdateGroups(temp.Key, 0); } else { _shopLogic.UpdateGroups(temp.Key, currentTime + group.Period); } if (_shop.State.Groups.TryGetValue(temp.Value.Id, out var data)) { data.RefreshNumber = 1; } } foreach (var temp in _achievement.Static.Achievements) { var data = _achievement.CreateAchievementData(temp.Key); var duration = (int)_formula.Calculate(temp.Value.Time); if (duration > 0) { data.FinishTime = currentTime + duration; } } LogicLog.SetSession(LogSessionType.OpenGame); _settings.State.CurrentVersion = Application.version; _settings.State.Build = _settings.Settings.Builds.FirstOrDefault(x => x.Value.Version == Application.version).Key; }
public void SetSession(LogSessionType type) { LogicLog.SetSession(type); }