예제 #1
0
            public bool IsUnlocked(int gameModeId)
            {
                // first game mode is always unlocked
                if (gameModeId == GameConstants.Instance.GameModes.First().Id)
                {
                    return(true);
                }

                return(UnlockedIdsSet_.Contains(gameModeId));
            }
예제 #2
0
 public void Unlock(int gameModeId)
 {
     UnlockedIdsSet_.Add(gameModeId);
     unlockedIds_ = UnlockedIdsSet_.ToArray();
 }