Ejemplo n.º 1
0
    void Start()
    {
        if (speedReference == null)
        {
            speedReference = transform;
        }

        skeletonAnimation = GetComponent <SkeletonAnimation>();
        bone = SpineBone.GetBone(boneName, skeletonAnimation);
        skeletonAnimation.UpdateLocal += UpdateLocal;
        lastPosition = speedReference.position;
    }