void setJointDatas(finger[] joint_datas, int hand_type, int finger_type) { joint_datas[0] = new finger(); joint_datas[0].finger_type = finger_type; joint_datas[0].meta0 = new joint[1]; setVecDatas(joint_datas[0].meta0, hand_type, finger_type, 0); joint_datas[0].prox0 = new joint[1]; setVecDatas(joint_datas[0].prox0, hand_type, finger_type, 1); joint_datas[0].inter0 = new joint[1]; setVecDatas(joint_datas[0].inter0, hand_type, finger_type, 2); joint_datas[0].dist0 = new joint[1]; setVecDatas(joint_datas[0].dist0, hand_type, finger_type, 3); joint_datas[0].dist1 = new joint[1]; setVecDatas(joint_datas[0].dist1, hand_type, finger_type, 4); }
private void Awake() { #if !UNITY_EDITOR finger ID = 0; #endif }