public void Initialize() { _groundTiles.Clear(); foreach (GroundTile gt in _entityManager.GetEntitiesOfType <GroundTile>()) { _entityManager.RemoveEntity(gt); } GroundTile groundTile = CreateRegularTile(0); _groundTiles.Add(groundTile); _entityManager.AddEntity(groundTile); }
private GroundTile CreateRegularTile(float positionX) { GroundTile groundTile = new GroundTile(positionX, GROUND_TILE_POS_Y, _regularSprite); return(groundTile); }
private GroundTile CreateBumpyTile(float positionX) { GroundTile groundTile = new GroundTile(positionX, GROUND_TILE_POS_Y, _bumpySprite); return(groundTile); }