コード例 #1
0
    protected void ReloadLevelData()
    {
        _lvlMgr.Clear();
        List <MapData> restaurants = _restMgr.GetAllMaps();

        foreach (MapData rest in restaurants)
        {
            //string levelFilePath = m_levelFileDir + rest.key + ".json";
            //if (File.Exists(levelFilePath))
            //{
            //    string jsonStr = File.ReadAllText(levelFilePath);
            //    _lvlMgr.LoadFromDBFile(rest.key, jsonStr);
            //}
            _lvlMgr.LoadLevelDataForMap(rest.key);
        }
    }