Inheritance: HandModel
示例#1
0
 private void Start()
 {
     ins           = this;
     left          = handsList[0];
     right         = handsList[1];
     startingColor = left.fingers[0].GetComponent <MeshRenderer>().materials[0].color;
 }
示例#2
0
        public static void changeFingerIDX(Leap.Unity.Chirality chirality, int fingerIDX, Color color)
        {
            PolyHand hand = right;

            if (chirality == Chirality.Left)
            {
                hand = left;
            }
            FingerModel finger = hand.fingers[fingerIDX];

            finger.GetComponent <MeshRenderer>().materials[0].color = color;
        }