Пример #1
0
 private MapManager()
 {
     _map            = ConfigReader.GetConfig().GetField("map");
     _openedStations = PersistentDataStorage.GetStringDictionary(OpenedStationsKey);
     _currentWorldId = PlayerPrefs.GetString(CurrentWorldKey, "");
     if (_currentWorldId == string.Empty)
     {
         SetCurrentWorld(_map.keys[0]);
     }
     if (_openedStations.Count == 0)
     {
         OpenNextLevel();
     }
     if (_currentStationInfo == null)
     {
         SetCurrentStation(GetDebugLevelName());
     }
 }