at this particular piece of code
atlas = new TextureAtlas(Gdx.files.internal("spineboy/spineboy.atlas"));
// This loader creates Box2dAttachments instead of RegionAttachments for an easy way to keep
// track of the Box2D body for each attachment.
TextureAtlasAttachmentLoader atlasLoader = new TextureAtlasAttachmentLoader(atlas) {
public Attachment newAttachment (AttachmentType type, String name) {
Box2dAttachment attachment = new Box2dAttachment(name);
AtlasRegion region = atlas.findRegion(attachment.getName());
if (region == null) throw new RuntimeException("Region not found in atlas: " + attachment);
attachment.setRegion(region);
return attachment;
}
};
The method addAttachment is never used, is this because the runtime has been updated?
Thanks