diff --git a/spine-csharp/src/Attachments/MeshAttachment.cs b/spine-csharp/src/Attachments/MeshAttachment.cs index 5d1ba4a34..fe0ca29a4 100644 --- a/spine-csharp/src/Attachments/MeshAttachment.cs +++ b/spine-csharp/src/Attachments/MeshAttachment.cs @@ -52,8 +52,8 @@ namespace Spine { public float B { get { return b; } set { b = value; } } public float A { get { return a; } set { a = value; } } - public String Path { get; set; } - public Object RendererObject { get; set; } + public string Path { get; set; } + public object RendererObject; //public Object RendererObject { get; set; } public float RegionU { get; set; } public float RegionV { get; set; } public float RegionU2 { get; set; } diff --git a/spine-csharp/src/Attachments/PointAttachment.cs b/spine-csharp/src/Attachments/PointAttachment.cs index 0fbe8dd6b..b74d51f28 100644 --- a/spine-csharp/src/Attachments/PointAttachment.cs +++ b/spine-csharp/src/Attachments/PointAttachment.cs @@ -46,8 +46,8 @@ namespace Spine { : base(name) { } - public void ComputeWorldPosition (Bone bone, float x, float y, out float ox, out float oy) { - bone.LocalToWorld(x, y, out ox, out oy); + public void ComputeWorldPosition (Bone bone, out float ox, out float oy) { + bone.LocalToWorld(this.x, this.y, out ox, out oy); } public float ComputeWorldRotation (Bone bone) { diff --git a/spine-csharp/src/Attachments/RegionAttachment.cs b/spine-csharp/src/Attachments/RegionAttachment.cs index bd0c5179f..e5e1064ae 100644 --- a/spine-csharp/src/Attachments/RegionAttachment.cs +++ b/spine-csharp/src/Attachments/RegionAttachment.cs @@ -61,7 +61,7 @@ namespace Spine { public float A { get { return a; } set { a = value; } } public string Path { get; set; } - public object RendererObject { get; set; } + public object RendererObject; //public object RendererObject { get; set; } public float RegionOffsetX { get { return regionOffsetX; } set { regionOffsetX = value; } } public float RegionOffsetY { get { return regionOffsetY; } set { regionOffsetY = value; } } // Pixels stripped from the bottom left, unrotated. public float RegionWidth { get { return regionWidth; } set { regionWidth = value; } } diff --git a/spine-csharp/src/Attachments/VertexAttachment.cs b/spine-csharp/src/Attachments/VertexAttachment.cs index 1ffa33137..23c502e9d 100644 --- a/spine-csharp/src/Attachments/VertexAttachment.cs +++ b/spine-csharp/src/Attachments/VertexAttachment.cs @@ -57,7 +57,7 @@ namespace Spine { /// The number of entries between the value pairs written. public void ComputeWorldVertices (Slot slot, int start, int count, float[] worldVertices, int offset, int stride = 2) { count = offset + (count >> 1) * stride; - Skeleton skeleton = slot.Skeleton; + Skeleton skeleton = slot.bone.skeleton; var deformArray = slot.attachmentVertices; float[] vertices = this.vertices; int[] bones = this.bones;