Пример #1
0
        void Start()
        {
            Rig   = GetComponent <HandRig>();
            Nodes = Rig.getNodes();

            createGears();
        }
Пример #2
0
            public Gear(Transform trans, HandBoneIndex bone, HandRig rig, GearMoving onMoving_)
            {
                transform = trans;
                axis      = HandBoneIndices.RotationAxies[(int)bone];

                int index = System.Array.IndexOf(HandBoneIndices.RangedAngles, bone);

                range    = rig.Data.RangedAngles[index];
                onMoving = onMoving_;
            }