Ejemplo n.º 1
0
    public void UpdateTimeAchievements(float time)
    {
        if (!Achievements.GetWalker() && time >= achieve1Time)
        {
            Achievements.SetWalker(1);
            PlayGamesController.UnlockWalkerAchievement();
        }

        if (!Achievements.GetHurried() && time >= achieve2Time)
        {
            Achievements.SetHurried(1);
            PlayGamesController.UnlockHurriedAchievement();
        }

        if (!Achievements.GetRunner() && time >= achieve3Time)
        {
            Achievements.SetRunner(1);
            PlayGamesController.UnlockRunnerAchievement();
        }

        if (!Achievements.GetSurvivor() && time >= achieve4Time)
        {
            Achievements.SetSurvivor(1);
            PlayGamesController.UnlockSurvivorAchievement();
        }

        if (!Achievements.GetTimeTraveller() && time >= achieve5Time)
        {
            Achievements.SetTimeTraveller(1);
            PlayGamesController.UnlockTimeTravellerAchievement();
        }
    }