예제 #1
0
    public void UpdateStreakAchievements(int streak)
    {
        if (!Achievements.GetRookie() && streak >= achieve1Streak)
        {
            Achievements.SetRookie(1);
            PlayGamesController.UnlockRookieAchievement();
        }

        if (!Achievements.GetStudent() && streak >= achieve2Streak)
        {
            Achievements.SetStudent(1);
            PlayGamesController.UnlockStudentAchievement();
        }

        if (!Achievements.GetMathematician() && streak >= achieve3Streak)
        {
            Achievements.SetMathematician(1);
            PlayGamesController.UnlockMathematicianAchievement();
        }

        if (!Achievements.GetGeometer() && streak >= achieve4Streak)
        {
            Achievements.SetGeometer(1);
            PlayGamesController.UnlockGeometerAchievement();
        }

        if (!Achievements.GetEngineer() && streak >= achieve5Streak)
        {
            Achievements.SetEngineer(1);
            PlayGamesController.UnlockEngineerAchievement();
        }
    }