Ejemplo n.º 1
0
    public static void CheckForEndlessScoreAchievement(float score)
    {
        GooglePlayHelper gph = GooglePlayHelper.GetInstance();

        if (!gph.IsPlayerAuthenticated())
        {
            return;
        }

        if (score >= 5000)
        {
            gph.UnlockAchievement(GPGSConstant.achievement_chicken_wings_100_points);
        }
        if (score >= 10000)
        {
            gph.UnlockAchievement(GPGSConstant.achievement_buffalo_wings_120_points);
        }
        if (score >= 20000)
        {
            gph.UnlockAchievement(GPGSConstant.achievement_wingin_it_160_points);
        }
        if (score >= 50000)
        {
            gph.UnlockAchievement(GPGSConstant.achievement_ride_the_wings_of_pestilance_200_points);
        }
    }
Ejemplo n.º 2
0
    public static void CheckForWelcomeAchievement()
    {
        GooglePlayHelper gph = GooglePlayHelper.GetInstance();

        if (!gph.IsPlayerAuthenticated())
        {
            return;
        }

        GooglePlayHelper.GetInstance().UnlockAchievement(GPGSConstant.achievement_bun_venit_20_points);
    }
Ejemplo n.º 3
0
    public static void CheckForMultiplayerAchievement(int wins)
    {
        GooglePlayHelper gph = GooglePlayHelper.GetInstance();

        if (!gph.IsPlayerAuthenticated())
        {
            return;
        }

        if (wins >= 10)
        {
            GooglePlayHelper.GetInstance().UnlockAchievement(GPGSConstant.achievement_next);
        }
    }
Ejemplo n.º 4
0
    public static void CheckForTimingAchievement(int excellentEchosSequence, int goodEchosSequence)
    {
        GooglePlayHelper gph = GooglePlayHelper.GetInstance();

        if (!gph.IsPlayerAuthenticated())
        {
            return;
        }

        if (excellentEchosSequence >= 5)
        {
            GooglePlayHelper.GetInstance().UnlockAchievement(GPGSConstant.achievement_excellent_100_points);
        }

        if (goodEchosSequence >= 50)
        {
            GooglePlayHelper.GetInstance().UnlockAchievement(GPGSConstant.achievement_good_50_points);
        }
    }