Beispiel #1
0
        private void Start()
        {
            polygon     = GetComponent <PolygonSkeleton>();
            boneScalers = polygon.boneScalers;

            debug.SetActive(true);
            model.SetActive(false);
        }
        private void Awake()
        {
            if (boneReferences.IsValid && newSkeleton.IsValid)
            {
                ReparentSkeleton(newSkeleton);
                ParentSkeletonToAnotherSkeleton(newSkeleton, boneReferences);

                boneScalers = new SkeletonBoneScalers();
                boneScalers.GenerateScalerBonesForBody(boneReferences, newSkeleton);

                ik.InitializeIK(transform, animator, newSkeleton, FindObjectOfType <IKTargets_TMP>());
                ik.CreateCharacterIK();

                foreach (HandAnimator anim in GetComponentsInChildren <HandAnimator>())
                {
                    anim.CalculateAxes();
                    anim.enabled = true;
                }
            }
        }
Beispiel #3
0
 private void Start()
 {
     boneScalers = GetComponent <PolygonSkeleton>().boneScalers;
 }