public void SaveMap(string targetFile)
        {
            /*if (_tileEngineMap != null)
             * {
             *  _tileEngineMap.Save();
             *  _tileEngineMap.Dispose();
             * }*/
            _tileEngineMap?.Dispose();
            CreateMapContainer(targetFile);

            Scene.SaveToMap(_scene, _tileEngineMap, "main.scene");

            GameResources.Instance.SaveResourcesToMap(_tileEngineMap);

            _tileEngineMap.Save();
        }