private void Init(SerializedProperty property)
 {
     if (!initialized)
     {
         _target     = fieldInfo.GetValue(property.serializedObject.targetObject) as BaseCharacterModifier;
         initialized = true;
     }
 }
Пример #2
0
 public void ImportSettings(BaseCharacterModifier other)
 {
     this._adjustBounds  = other._adjustBounds;
     this._adjustHeight  = other._adjustHeight;
     this._adjustMass    = other._adjustMass;
     this._adjustRadius  = other._adjustRadius;
     this._adjustScale   = other.adjustScale;
     this._bone          = other._bone;
     this._boundsAdjust  = other._boundsAdjust;
     this._headRatio     = other._headRatio;
     this._massAdjust    = other._massAdjust;
     this._radiusAdjust  = other._radiusAdjust;
     this._radiusAdjustY = other._radiusAdjustY;
     this._scale         = other._scale;
     this._scaleBoneHash = other._scaleBoneHash;
     this._tightenBounds = other._tightenBounds;
     this._updateBounds  = other._updateBounds;
 }