public void Init(BuildCube bc) { _startPos = bc._startPos; _endPos = bc._endPos; _straightMode = bc._straightMode; _dragHeight = bc._dragHeight; _deleteMode = bc._deleteMode; _rotation = bc._rotation; _heightLength = bc._heightLength; _id = bc._id; _matIndex = bc._matIndex; _pivot = bc._pivot; }
public virtual bool Equals(BuildCube bc) { if (bc._startPos.Equals(_startPos) && bc._endPos.Equals(_endPos) && bc._straightMode == _straightMode && bc._dragHeight == _dragHeight && bc._deleteMode == _deleteMode && bc._rotation == _rotation && bc._heightLength == _heightLength && bc._id == _id && bc._matIndex == _matIndex && bc._pivot.Equals(_pivot)) { return(true); } return(false); }