public int CountOfUnlockedTiers(PlayerAchievmentObject playerAch) { int playerCount = playerAch.GetValue(variable); int cnt = 0; foreach (var t in tiers) { if (t.Value.Unlocked(playerCount)) { cnt++; } } return(cnt); }
public bool AllOpened(PlayerAchievmentObject currentVariables) { var count = currentVariables.GetValue(variable); bool ok = true; foreach (var kvp in tiers) { if (!kvp.Value.Unlocked(count)) { ok = false; break; } } return(ok); }