only do achievement map check on debug

This commit is contained in:
Ellpeck 2020-07-26 14:35:08 +02:00
parent caa40f1160
commit efbf197e72

View file

@ -89,10 +89,12 @@ namespace Android {
.Build(); .Build();
this.GoogleApi.Connect(); this.GoogleApi.Connect();
#if DEBUG
// Sanity check to ensure that all achievements are mapped // Sanity check to ensure that all achievements are mapped
foreach (var achievement in Achievement.Achievements.Values) { foreach (var achievement in Achievement.Achievements.Values) {
var _ = AchievementIds[achievement.Name]; var _ = AchievementIds[achievement.Name];
} }
#endif
} }
public override void AddResourceEvent(bool sink, string currency, float amount, string itemType, string itemId) { public override void AddResourceEvent(bool sink, string currency, float amount, string itemType, string itemId) {