Esempio n. 1
0
        public IEnumerator Load()
        {
            yield return(null);

            var path = MapFileManager.Instance.GetPath(_mapFilenames[_currentMapIndex]);

            using (var fileStream = new FileStream(path, FileMode.Open))
            {
                _map.Import(fileStream);
            }

            yield return(null);

            _map.Build();

            yield return(null);
        }