Beispiel #1
0
    public void UpdateFitsAchievements(int fits)
    {
        if (!Achievements.GetFitter() && fits >= achieve1Fits)
        {
            Achievements.SetFitter(1);
            PlayGamesController.UnlockFitterAchievement();
        }

        if (!Achievements.GetBossFitter() && fits >= achieve2Fits)
        {
            Achievements.SetBossFitter(1);
            PlayGamesController.UnlockBossFitterAchievement();
        }

        if (!Achievements.GetBlockManager() && fits >= achieve3Fits)
        {
            Achievements.SetBlockManager(1);
            PlayGamesController.UnlockBlockManagerAchievement();
        }

        if (!Achievements.GetGoodShot() && fits >= achieve4Fits)
        {
            Achievements.SetGoodShot(1);
            PlayGamesController.UnlockGoodShotAchievement();
        }

        if (!Achievements.GetMasterCalculator() && fits >= achieve5Fits)
        {
            Achievements.SetMasterCalculator(1);
            PlayGamesController.UnlockMasterCalculatorAchievement();
        }
    }