private async Task LoadAsync() { _tsgProvider = await TileSetGraphicsProvider.CreateFromTileSet(IoC.Get <IGameEngineResourceResolver>(), _rawTileSet.Name); for (int i = 0; i < _pickAnyUnits.Length; i++) { _pickAnyUnits[i] = await _tsgProvider.CreatePickAnyUnit(i); } }
private async Task LoadAsync() { _tsgProvider = await TileSetGraphicsProvider.CreateFromTileSet(IoC.Get<IGameEngineResourceResolver>(), _rawTileSet.Name); for (int i = 0; i < _pickAnyUnits.Length; i++) _pickAnyUnits[i] = await _tsgProvider.CreatePickAnyUnit(i); }