Ejemplo n.º 1
0
    public void ReLoadMap()
    {
        if (mapObjectParent != null)
        {
            Destroy(mapObjectParent);
        }

        string path = MapSetting.MAP_DATA_FOLDER_NAME + MapFileName;

        if (MapDataCollection != null)
        {
            MapDataCollection.Load(path);
        }

        if (MapObjectDataCollection != null)
        {
            MapObjectDataCollection.Load(path + "_Object");
        }

        DrawMap();
    }