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); } }
public override void LoadFrom(PoseController other) { base.LoadFrom(other); if (other == null) { return; } CharaPoseController other2 = other as CharaPoseController; if (other2 != null) { this.optimizeIK = other2.optimizeIK; this.crotchJointCorrection = other2.crotchJointCorrection; this.leftFootJointCorrection = other2.leftFootJointCorrection; this.rightFootJointCorrection = other2.rightFootJointCorrection; if (this._target.isFemale) { this._boobsEditor.LoadFrom(other2._boobsEditor); } } }
public virtual void LoadFrom(PoseController other) { if (other == null) { return; } this._bonesEditor.LoadFrom(other._bonesEditor); this._collidersEditor.LoadFrom(other._collidersEditor); this._dynamicBonesEditor.LoadFrom(other._dynamicBonesEditor); this._blendShapesEditor.LoadFrom(other._blendShapesEditor); this._ikEditor.LoadFrom(other._ikEditor); foreach (GameObject ignoredObject in other._childObjects) { if (ignoredObject == null) { continue; } Transform obj = this.transform.Find(ignoredObject.transform.GetPathFrom(other.transform)); if (obj != null && obj != this.transform) { this._childObjects.Add(obj.gameObject); } } }