mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +08:00
Fixed Goblins.cs compile error due to UpdateBones refactor
This commit is contained in:
parent
bd40a5fa33
commit
aabf89e29c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user