mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
Spear for example.
This commit is contained in:
parent
e0fffa79b3
commit
1af04a720d
@ -64,6 +64,7 @@ namespace Spine {
|
|||||||
skeleton = new Skeleton(json.ReadSkeletonData("data/goblins.json"));
|
skeleton = new Skeleton(json.ReadSkeletonData("data/goblins.json"));
|
||||||
skeleton.SetSkin("goblingirl");
|
skeleton.SetSkin("goblingirl");
|
||||||
skeleton.SetSlotsToBindPose(); // Without this the skin attachments won't be attached. See SetSkin.
|
skeleton.SetSlotsToBindPose(); // Without this the skin attachments won't be attached. See SetSkin.
|
||||||
|
skeleton.SetAttachment("left hand item", "spear");
|
||||||
animation = skeleton.Data.FindAnimation("walk");
|
animation = skeleton.Data.FindAnimation("walk");
|
||||||
|
|
||||||
skeleton.RootBone.X = 320;
|
skeleton.RootBone.X = 320;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user