private void Start() { ins = this; left = handsList[0]; right = handsList[1]; startingColor = left.fingers[0].GetComponent <MeshRenderer>().materials[0].color; }
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; }