MapBones() public static method

public static MapBones ( Transform root ) : Transform>.Dictionary
root UnityEngine.Transform
return Transform>.Dictionary
Ejemplo n.º 1
0
        protected void BipedMapping()
        {
            Dictionary <int, Transform> dictionary = AvatarBipedMapper.MapBones(base.gameObject.transform);

            foreach (KeyValuePair <int, Transform> current in dictionary)
            {
                AvatarSetupTool.BoneWrapper boneWrapper = this.m_Bones[current.Key];
                boneWrapper.bone = current.Value;
                boneWrapper.Serialize(base.serializedObject);
            }
        }
        protected void BipedMapping()
        {
            Dictionary <int, Transform> mapping = AvatarBipedMapper.MapBones(gameObject.transform);

            foreach (KeyValuePair <int, Transform> kvp in mapping)
            {
                AvatarSetupTool.BoneWrapper bone = m_Bones[kvp.Key];
                bone.bone = kvp.Value;
                bone.Serialize(m_HumanBoneArray);
            }
        }
Ejemplo n.º 3
0
 protected void BipedMapping()
 {
     using (Dictionary <int, Transform> .Enumerator enumerator = AvatarBipedMapper.MapBones(this.gameObject.transform).GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             KeyValuePair <int, Transform> current = enumerator.Current;
             AvatarSetupTool.BoneWrapper   bone    = this.m_Bones[current.Key];
             bone.bone = current.Value;
             bone.Serialize(this.serializedObject);
         }
     }
 }