Game Center custom achievement

Hi,

I am working on a game for iPad 3 and I want to create a custom effect for each achievement. Basically I am using this to report the achievement in my code:

GameCenter.ReportAchievement(“levelUpAchievement0”);

And I want to instantiate the custom effect prefab right after that but I don’t know how to do it only once or how to check if the achievement is already achieved. Thanks in advance.

var achievementGot : boolean;

if ( !achievementGot[ achievement ] && MetRequirements(achievement) ) {
  GameCenter.ReportAchievement( achievement );
  ShowEffect();
  achievementGot[ achievement ] = true;
}

I imagine saving achievementGot via PlayerPrefs would be the simplest way to store it locally between sessions. I have no idea what GameCenter functions there are, but I’d be surprised if there isn’t a “HasAchievement” of some kind.