瀏覽代碼

[spine-csharp] Fixed Skeleton.PhysicsRotate passing r instead of x. Closes #2512.

Harald Csaszar 1 年之前
父節點
當前提交
c65f73e873
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      spine-csharp/src/Skeleton.cs
  2. 1 1
      spine-csharp/src/package.json

+ 1 - 1
spine-csharp/src/Skeleton.cs

@@ -489,7 +489,7 @@ namespace Spine {
 		public void PhysicsRotate (float x, float y, float degrees) {
 			PhysicsConstraint[] physicsConstraints = this.physicsConstraints.Items;
 			for (int i = 0, n = this.physicsConstraints.Count; i < n; i++)
-				physicsConstraints[i].Rotate(r, y, degrees);
+				physicsConstraints[i].Rotate(x, y, degrees);
 		}
 
 		/// <summary>Increments the skeleton's <see cref="time"/>.</summary>

+ 1 - 1
spine-csharp/src/package.json

@@ -2,7 +2,7 @@
 	"name": "com.esotericsoftware.spine.spine-csharp",
 	"displayName": "spine-csharp Runtime",
 	"description": "This plugin provides the spine-csharp core runtime.",
-	"version": "4.2.19",
+	"version": "4.2.20",
 	"unity": "2018.3",
 	"author": {
 		"name": "Esoteric Software",