示例#1
0
    private void LoadGame()
    {
        Money = _saveController.LoadMoney();
        moneyAchievementInactive = _saveController.LoadMoneyAchievementDone();
        scoreAchievementInactive = _saveController.LoadScoreAchievementDone();

        int      dailyCount    = _saveController.LoadDailyCount();
        DateTime lastLoginDate = _saveController.LoadLastLogin();

        _achievementsController.AchievementIncremental(lastLoginDate);

        if (lastLoginDate.Date == DateTime.Now.Date)
        {
            dailyCount += 1;
            _saveController.SaveDailyCount(dailyCount);

            bool dailyAchievementCompleted = _achievementsController.CheckFiveTimesOneDayAchievement(dailyCount);
            if (dailyAchievementCompleted)
            {
                _gpsController.CompleteAchievement(GPGSIds.achievement_achievement_4);
            }
        }
        _saveController.SaveLastLogin(DateTime.Now);
        FirstGamePlayed = _saveController.LoadIsFirstGame();

        ChangeGameState(GameState.MENU);
    }
示例#2
0
 public void FirstGameAchievement()
 {
     _gpsController.CompleteAchievement(GPGSIds.achievement_achievement_5);
 }