コード例 #1
0
        internal bool isLockFingerRotation()
        {
            //ruige redo 添加参数Id
            if (mHand.GetGloveHand().IsTriggerObjectById(m_finger_type))
            {
                //Debug.Log("Lock   "+ m_finger_type);
                return(true);
            }
            else
            {
                //Dictionary<Hi5_Glove_Finger_bone_Type, Hi5_Hand_Collider_Visible_Finger> mBoneCollider
                foreach (KeyValuePair <Hi5_Glove_Finger_bone_Type, Hi5_Hand_Collider_Visible_Finger> item in mBoneCollider)
                {
                    item.Value.Reset();
                }
                return(false);
            }

            //if (isFollow)
            //    Debug.Log("isFollow true");
            //else
            //    Debug.Log("isFollow false");
            //return !isFollow;
            //bool isLock = false;
            //foreach (KeyValuePair<Hi5_Glove_Finger_bone_Type, bool> item in mChildRotationLock)
            //{
            //    if (item.Value)
            //    {
            //        Debug.Log("m_finger_type = " + m_finger_type + "   Hi5_Glove_Finger_bone_Type="+ item.Key);
            //        isLock = true;
            //    }

            //}
            //return isLock;
        }
コード例 #2
0
 internal bool isLockFingerRotation()
 {
     //ruige redo 添加参数Id
     if (mHand.GetGloveHand().IsTriggerObjectById(m_finger_type))
     {
         return(true);
     }
     else
     {
         foreach (KeyValuePair <Hi5_Glove_Finger_bone_Type, Hi5_Hand_Collider_Visible_Finger> item in mBoneCollider)
         {
             item.Value.Reset();
         }
         return(false);
     }
 }