public void SetOppColliderKind(Collider opp) { this._oppColliderKind = eColliderKind.None; if (true == _multi.hashMap.IsMyTransform(opp.transform)) { return; } HashInfoMap map = _multi.hashMap; int oppHashCode = opp.name.GetHashCode(); if (oppHashCode == map.GetHash((int)eHashIdx.Bone_Weapon_Sword_Right)) { _oppColliderKind = eColliderKind.Weapon; } else if (oppHashCode == map.GetHash((int)eHashIdx.Bone_Mesh_Body)) { _oppColliderKind = eColliderKind.Body; } if (oppHashCode == map.GetHash((int)eHashIdx.Bone_Mesh_Hand_Left)) { _oppColliderKind = eColliderKind._HandLeft; } if (oppHashCode == map.GetHash((int)eHashIdx.Bone_Mesh_Hand_Right)) { _oppColliderKind = eColliderKind._HandRight; } if (oppHashCode == map.GetHash((int)eHashIdx.Bone_Mesh_Head)) { _oppColliderKind = eColliderKind._Head; } else { _oppColliderKind = eColliderKind.Objects; } }
public void SetOppColliderKind(eColliderKind opp) { this._oppColliderKind = opp; }
public void SetMyColliderKind(eColliderKind my) { this._myColliderKind = my; }