private void PlaceMaterial(Vector2D position, string selectedLevelObject, int levelObjectIndex) { DrawableEntity entity; if (Is3D) entity = new MaterialLevelObject(position, selectedLevelObject); else entity = new SpriteLevelObject(position, selectedLevelObject); ObjectList[levelObjectIndex] = entity; }
private void PlaceMaterial(Vector2D position, string selectedLevelObject, int levelObjectIndex) { DrawableEntity entity; if (Is3D) { entity = new MaterialLevelObject(position, selectedLevelObject); } else { entity = new SpriteLevelObject(position, selectedLevelObject); } ObjectList[levelObjectIndex] = entity; }