Exemplo n.º 1
0
 private void GetP3Bones(GameObject obj)
 {
     if (null == obj)
     {
         return;
     }
     _baseLocatorP3  = BoneMount.FindChildBone(obj, BoneName.AlternativeWeaponLocator);
     _spineP3        = BoneMount.FindChildBone(obj, BoneName.CharacterSpineName);     //"Bip01 Spine");
     _spine1P3       = BoneMount.FindChildBone(obj, BoneName.CharacterSpine1Name);    // "Bip01 Spine1");
     _pelvisP3       = BoneMount.FindChildBone(obj, BoneName.CharacterBipPelvisName); //"Bip01 Pelvis");
     _ikControllerP3 = obj.GetComponent <PlayerIK>();
     _ikControllerP3.SetIKGoal(AvatarIKGoal.LeftHand);
 }
Exemplo n.º 2
0
 private void GetP1Bones(GameObject obj)
 {
     if (null == obj)
     {
         return;
     }
     _viewPointP1     = BoneMount.FindChildBone(obj, BoneName.ViewPoint);
     _baseLocatorP1   = BoneMount.FindChildBone(obj, BoneName.FirstPersonHandLocator);
     _cameraLocatorP1 = BoneMount.FindChildBone(obj, BoneName.FirstPersonCameraLocator);
     _rightHandP1     = BoneMount.FindChildBone(obj, BoneName.CharacterRightHandName);
     _leftHandP1      = BoneMount.FindChildBone(obj, BoneName.CharacterLeftHandName);
     _ikControllerP1  = obj.GetComponent <PlayerIK>();
     _ikControllerP1.SetIKGoal(AvatarIKGoal.LeftHand);
 }