mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[tk2d] Fix TK2D AttachmentLoader for 3.6.
This commit is contained in:
parent
4e7a409a63
commit
0f13ee892a
@ -33,7 +33,7 @@ using System;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Spine;
|
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 {
|
namespace Spine.Unity.TK2D {
|
||||||
public class SpriteCollectionAttachmentLoader : AttachmentLoader {
|
public class SpriteCollectionAttachmentLoader : AttachmentLoader {
|
||||||
private tk2dSpriteCollectionData sprites;
|
private tk2dSpriteCollectionData sprites;
|
||||||
@ -144,6 +144,14 @@ namespace Spine.Unity.TK2D {
|
|||||||
public PathAttachment NewPathAttachment (Skin skin, string name) {
|
public PathAttachment NewPathAttachment (Skin skin, string name) {
|
||||||
return new PathAttachment(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
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user