public bool IsUnlocked(int gameModeId) { // first game mode is always unlocked if (gameModeId == GameConstants.Instance.GameModes.First().Id) { return(true); } return(UnlockedIdsSet_.Contains(gameModeId)); }
public void Unlock(int gameModeId) { UnlockedIdsSet_.Add(gameModeId); unlockedIds_ = UnlockedIdsSet_.ToArray(); }