protected override void Awake() { base.Awake(); _charaPoseControllers.Add(this); this._body = this._target.ociChar.fullBodyIK; if (this._target.isFemale) { this._boobsEditor = new BoobsEditor(this, this._target); this._modules.Add(this._boobsEditor); } if (this._target.isFemale) { this._siriDamL = this.transform.Find("p_cf_anim/cf_J_Root/cf_N_height/cf_J_Hips/cf_J_Kosi01/cf_J_Kosi02/cf_J_SiriDam_L"); this._siriDamR = this.transform.Find("p_cf_anim/cf_J_Root/cf_N_height/cf_J_Hips/cf_J_Kosi01/cf_J_Kosi02/cf_J_SiriDam_R"); this._kosi = this.transform.Find("p_cf_anim/cf_J_Root/cf_N_height/cf_J_Hips/cf_J_Kosi01/cf_J_Kosi02/cf_J_Kosi02_s"); } else { this._siriDamL = this.transform.Find("p_cm_anim/cm_J_Root/cm_N_height/cm_J_Hips/cm_J_Kosi01/cm_J_Kosi02/cm_J_SiriDam_L"); this._siriDamR = this.transform.Find("p_cm_anim/cm_J_Root/cm_N_height/cm_J_Hips/cm_J_Kosi01/cm_J_Kosi02/cm_J_SiriDam_R"); this._kosi = this.transform.Find("p_cm_anim/cm_J_Root/cm_N_height/cm_J_Hips/cm_J_Kosi01/cm_J_Kosi02/cm_J_Kosi02_s"); } this._leftFoot2 = this._body.solver.leftLegMapping.bone3.GetChild(0); this._leftFoot2OriginalRotation = this._leftFoot2.localRotation; this._leftFoot2ParentOriginalRotation = 357.7f; this._rightFoot2 = this._body.solver.rightLegMapping.bone3.GetChild(0); this._rightFoot2OriginalRotation = this._rightFoot2.localRotation; this._rightFoot2ParentOriginalRotation = 357.7f; this._siriDamLOriginalRotation = this._siriDamL.localRotation; this._siriDamROriginalRotation = this._siriDamR.localRotation; this._kosiOriginalRotation = this._kosi.localRotation; IKSolver_Patches.onPostUpdate += this.IKSolverOnPostUpdate; IKExecutionOrder_Patches.onPostLateUpdate += this.IKExecutionOrderOnPostLateUpdate; FKCtrl_Patches.onPreLateUpdate += this.FKCtrlOnPreLateUpdate; Expression_Patches.onPostLateUpdate += this.ExpressionOnPostLateUpdate; OCIChar_ChangeChara_Patches.onChangeChara += this.OnCharacterReplaced; OCIChar_LoadClothesFile_Patches.onLoadClothesFile += this.OnLoadClothesFile; //OCIChar_SetCoordinateInfo_Patches.onSetCoordinateInfo += this.OnCoordinateReplaced; this.crotchJointCorrection = PHPE._self.crotchCorrectionByDefault; this.leftFootJointCorrection = PHPE._self.anklesCorrectionByDefault; this.rightFootJointCorrection = PHPE._self.anklesCorrectionByDefault; }
public static void SelectionChanged(PoseController self) { if (self != null) { BonesEditor.SelectionChanged(self._bonesEditor); CollidersEditor.SelectionChanged(self._collidersEditor); DynamicBonesEditor.SelectionChanged(self._dynamicBonesEditor); CharaPoseController self2 = self as CharaPoseController; BoobsEditor.SelectionChanged(self2 != null ? self2._boobsEditor : null); } else { BonesEditor.SelectionChanged(null); CollidersEditor.SelectionChanged(null); DynamicBonesEditor.SelectionChanged(null); BoobsEditor.SelectionChanged(null); } }