private Vector3 Parse(Vector3 _src, GuideMove.MoveAxis _axis) { string format = string.Format("F{0}", (object)(2 - Studio.Studio.optionSystem.snap)); ((Vector3) ref _src).set_Item((int)_axis, float.Parse(((Vector3) ref _src).get_Item((int)_axis).ToString(format))); return(_src); }
public void MoveLocal(Vector3 _value, bool _snap, GuideMove.MoveAxis _axis) { switch (this.moveCalc) { case GuideMove.MoveCalc.TYPE1: Vector3 _src1 = Vector3.op_Addition(this.m_ChangeAmount.pos, _value); this.m_ChangeAmount.pos = !_snap ? _src1 : this.Parse(_src1, _axis); break; case GuideMove.MoveCalc.TYPE2: case GuideMove.MoveCalc.TYPE3: if (Object.op_Implicit((Object)this.parent) && this.nonconnect) { Vector3 _src2 = Vector3.op_Addition(this.m_ChangeAmount.pos, this.parent.InverseTransformVector(_value)); this.m_ChangeAmount.pos = !_snap ? _src2 : this.Parse(_src2, _axis); break; } Vector3 _src3 = Vector3.op_Addition(this.transformTarget.get_position(), _value); this.transformTarget.set_position(!_snap ? _src3 : this.Parse(_src3, _axis)); this.m_ChangeAmount.pos = this.transformTarget.get_localPosition(); break; } }