private void SetupAvatarTransfer(GameObject avatar) { VRIKSolverTransfer transferSource = avatar.GetComponentInChildren <VRIKSolverTransfer>(); //HiddenにはIKないのでチェック if (transferSource != null) { transferSource.IkSolverRef = IKSoverReference.AsSource; var IK_Head = avatar.GetComponentInChildren <IK_Head_Linkage_CS>(); var IK_Arm = avatar.GetComponentInChildren <IK_CS>(); if (IK_Head != null) { transferSource.HeadTarget = IK_Head.eyeTransform; transferSource.LeftArmTarget = IK_Arm.leftHandTarget; transferSource.RightArmTarget = IK_Arm.rightHandTarget; } } }
void Awake() { photonView = GetComponent <PhotonView>(); ikSolverTransfer = GetComponent <VRIKSolverTransfer>(); }