This is question relate to Google Play Achievements.
For Google Achievement, I have this static class for all achievements.
public static class MyAchievements{
public const string achievement_NumberOneAchi = "CgkIuojYPEAIA";
public const string achievement_NumberTwoAchi = "CgkIuojYPEAIB";
}
In another script, I will get a string pass in passInAchiName = “NumberOneAchi”,
and I need to use this to get the string from the Static Class:
void IAchievementIntegration.UnlockAchievement( string passInAchiName)
{
//use passInAchiName to get "CgkIuojYPEAIA" or MyAchievements.achievement_NumberOneAchi
Social.ReportProgress("CgkIuojYPEAIA", 100.0f, (bool success) => {});
}