浏览代码

[Unity TK2D] goblin script fix

Fenrisul 11 年之前
父节点
当前提交
315c4e8c0c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      spine-tk2d/Assets/examples/goblins/Goblins.cs

+ 2 - 2
spine-tk2d/Assets/examples/goblins/Goblins.cs

@@ -40,11 +40,11 @@ public class Goblins : MonoBehaviour {
 	public void Start () {
 		skeletonAnimation = GetComponent<SkeletonAnimation>();
 		headBone = skeletonAnimation.skeleton.FindBone("head");
-		skeletonAnimation.UpdateBones += UpdateBones;
+		skeletonAnimation.UpdateLocal += UpdateLocal;
 	}
 
 	// This is called after the animation is applied to the skeleton and can be used to adjust the bones dynamically.
-	public void UpdateBones (SkeletonAnimation skeletonAnimation) {
+	public void UpdateLocal (SkeletonAnimation skeletonAnimation) {
 		headBone.Rotation += 15;
 	}