public void UpdateScoreAchievements(int score) { if (!Achievements.GetICanDoIt() && score >= achieve1Score) { Achievements.SetICanDoIt(1); PlayGamesController.UnlockICanDoItAchievement(); } if (!Achievements.GetImImproving() && score >= achieve2Score) { Achievements.SetImImproving(1); PlayGamesController.UnlockImImprovingAchievement(); } if (!Achievements.GetBlocksAreMyFriend() && score >= achieve3Score) { Achievements.SetBlocksAreMyFriend(1); PlayGamesController.UnlockBlocksAreMyFriendsAchievement(); } if (!Achievements.GetThisIsActuallyEasy() && score >= achieve4Score) { Achievements.SetThisIsActuallyEasy(1); PlayGamesController.UnlockThisIsActuallyEasyAchievement(); } if (!Achievements.GetTheMaster() && score >= achieve5Score) { Achievements.SetTheMaster(1); PlayGamesController.UnlockTheMasterAchievement(); } if (!Achievements.GetTheProfessional() && score >= achieve6Score) { Achievements.SetTheProfessional(1); PlayGamesController.UnlockTheProfessionalAchievement(); } }