From 0f13ee892a7cfaa5a257e8902afbed8f9a251538 Mon Sep 17 00:00:00 2001 From: pharan Date: Thu, 22 Jun 2017 11:44:38 +0800 Subject: [PATCH] [tk2d] Fix TK2D AttachmentLoader for 3.6. --- .../Modules/TK2D/SpriteCollectionAttachmentLoader.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/spine-unity/Assets/spine-unity/Modules/TK2D/SpriteCollectionAttachmentLoader.cs b/spine-unity/Assets/spine-unity/Modules/TK2D/SpriteCollectionAttachmentLoader.cs index 64ffb42a0..36ecb7268 100644 --- a/spine-unity/Assets/spine-unity/Modules/TK2D/SpriteCollectionAttachmentLoader.cs +++ b/spine-unity/Assets/spine-unity/Modules/TK2D/SpriteCollectionAttachmentLoader.cs @@ -33,7 +33,7 @@ using System; using UnityEngine; using Spine; -// TODO: handle TPackerCW flip mode (probably not swap uv horizontaly) +// MITCH: handle TPackerCW flip mode (probably not swap uv horizontaly) namespace Spine.Unity.TK2D { public class SpriteCollectionAttachmentLoader : AttachmentLoader { private tk2dSpriteCollectionData sprites; @@ -144,6 +144,14 @@ namespace Spine.Unity.TK2D { public PathAttachment NewPathAttachment (Skin skin, string name) { return new PathAttachment(name); } + + public PointAttachment NewPointAttachment (Skin skin, string name) { + return new PointAttachment(name); + } + + public ClippingAttachment NewClippingAttachment (Skin skin, string name) { + return new ClippingAttachment(name); + } } } #endif