浏览代码

[tk2d] Fix TK2D AttachmentLoader for 3.6.

pharan 8 年之前
父节点
当前提交
0f13ee892a
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      spine-unity/Assets/spine-unity/Modules/TK2D/SpriteCollectionAttachmentLoader.cs

+ 9 - 1
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