protected BoneState GetBoneState(int i, out string error) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type AvatarMappingEditor.\u003CGetBoneState\u003Ec__AnonStorey9D stateCAnonStorey9D = new AvatarMappingEditor.\u003CGetBoneState\u003Ec__AnonStorey9D(); error = string.Empty; // ISSUE: reference to a compiler-generated field stateCAnonStorey9D.bone = this.m_Bones[i]; // ISSUE: reference to a compiler-generated field if ((UnityEngine.Object) stateCAnonStorey9D.bone.bone == (UnityEngine.Object) null) return BoneState.None; AvatarSetupTool.BoneWrapper bone = this.m_Bones[AvatarSetupTool.GetFirstHumanBoneAncestor(this.m_Bones, i)]; // ISSUE: reference to a compiler-generated field if (i == 0 && (UnityEngine.Object) stateCAnonStorey9D.bone.bone.parent == (UnityEngine.Object) null) { // ISSUE: reference to a compiler-generated field error = stateCAnonStorey9D.bone.messageName + " cannot be the root transform"; return BoneState.InvalidHierarchy; } // ISSUE: reference to a compiler-generated field if ((UnityEngine.Object) bone.bone != (UnityEngine.Object) null && !stateCAnonStorey9D.bone.bone.IsChildOf(bone.bone)) { // ISSUE: reference to a compiler-generated field error = stateCAnonStorey9D.bone.messageName + " is not a child of " + bone.messageName + "."; return BoneState.InvalidHierarchy; } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field if (i != 23 && (UnityEngine.Object) bone.bone != (UnityEngine.Object) null && (UnityEngine.Object) bone.bone != (UnityEngine.Object) stateCAnonStorey9D.bone.bone && (double) (stateCAnonStorey9D.bone.bone.position - bone.bone.position).sqrMagnitude < (double) Mathf.Epsilon) { // ISSUE: reference to a compiler-generated field error = stateCAnonStorey9D.bone.messageName + " has bone length of zero."; return BoneState.BoneLenghtIsZero; } // ISSUE: reference to a compiler-generated method if (((IEnumerable<AvatarSetupTool.BoneWrapper>) this.m_Bones).Where<AvatarSetupTool.BoneWrapper>(new Func<AvatarSetupTool.BoneWrapper, bool>(stateCAnonStorey9D.\u003C\u003Em__1CA)).Count<AvatarSetupTool.BoneWrapper>() <= 1) return BoneState.Valid; // ISSUE: reference to a compiler-generated field error = stateCAnonStorey9D.bone.messageName + " is also assigned to "; bool flag = true; for (int index = 0; index < this.m_Bones.Length; ++index) { if (i != index && (UnityEngine.Object) this.m_Bones[i].bone == (UnityEngine.Object) this.m_Bones[index].bone) { if (flag) flag = false; else error = error + ", "; error = error + ObjectNames.NicifyVariableName(this.m_Bones[index].humanBoneName); } } error = error + "."; return BoneState.Duplicate; }
protected BoneState GetBoneState(int i, out string error) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type AvatarMappingEditor.\u003CGetBoneState\u003Ec__AnonStorey9D stateCAnonStorey9D = new AvatarMappingEditor.\u003CGetBoneState\u003Ec__AnonStorey9D(); error = string.Empty; // ISSUE: reference to a compiler-generated field stateCAnonStorey9D.bone = this.m_Bones[i]; // ISSUE: reference to a compiler-generated field if ((UnityEngine.Object)stateCAnonStorey9D.bone.bone == (UnityEngine.Object)null) { return(BoneState.None); } AvatarSetupTool.BoneWrapper bone = this.m_Bones[AvatarSetupTool.GetFirstHumanBoneAncestor(this.m_Bones, i)]; // ISSUE: reference to a compiler-generated field if (i == 0 && (UnityEngine.Object)stateCAnonStorey9D.bone.bone.parent == (UnityEngine.Object)null) { // ISSUE: reference to a compiler-generated field error = stateCAnonStorey9D.bone.messageName + " cannot be the root transform"; return(BoneState.InvalidHierarchy); } // ISSUE: reference to a compiler-generated field if ((UnityEngine.Object)bone.bone != (UnityEngine.Object)null && !stateCAnonStorey9D.bone.bone.IsChildOf(bone.bone)) { // ISSUE: reference to a compiler-generated field error = stateCAnonStorey9D.bone.messageName + " is not a child of " + bone.messageName + "."; return(BoneState.InvalidHierarchy); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field if (i != 23 && (UnityEngine.Object)bone.bone != (UnityEngine.Object)null && (UnityEngine.Object)bone.bone != (UnityEngine.Object)stateCAnonStorey9D.bone.bone && (double)(stateCAnonStorey9D.bone.bone.position - bone.bone.position).sqrMagnitude < (double)Mathf.Epsilon) { // ISSUE: reference to a compiler-generated field error = stateCAnonStorey9D.bone.messageName + " has bone length of zero."; return(BoneState.BoneLenghtIsZero); } // ISSUE: reference to a compiler-generated method if (((IEnumerable <AvatarSetupTool.BoneWrapper>) this.m_Bones).Where <AvatarSetupTool.BoneWrapper>(new Func <AvatarSetupTool.BoneWrapper, bool>(stateCAnonStorey9D.\u003C\u003Em__1CA)).Count <AvatarSetupTool.BoneWrapper>() <= 1) { return(BoneState.Valid); } // ISSUE: reference to a compiler-generated field error = stateCAnonStorey9D.bone.messageName + " is also assigned to "; bool flag = true; for (int index = 0; index < this.m_Bones.Length; ++index) { if (i != index && (UnityEngine.Object) this.m_Bones[i].bone == (UnityEngine.Object) this.m_Bones[index].bone) { if (flag) { flag = false; } else { error = error + ", "; } error = error + ObjectNames.NicifyVariableName(this.m_Bones[index].humanBoneName); } } error = error + "."; return(BoneState.Duplicate); }