public void Shift(float x, float y, float z) { mSprites.Shift(x, y, z); foreach (SpriteGrid sg in mSpriteGrids) { sg.Shift(x, y, z); } mSpriteFrames.Shift(x, y, z); mTexts.Shift(x, y, z); mPolygons.Shift(x, y, z); mAxisAlignedRectangles.Shift(x, y, z); mCircles.Shift(x, y, z); }
public void Shift(Vector3 shiftVector) { mSprites.Shift(shiftVector); for (int i = 0; i < mSpriteGrids.Count; i++) { SpriteGrid spriteGrid = mSpriteGrids[i]; spriteGrid.Shift(shiftVector.X, shiftVector.Y, shiftVector.Z); spriteGrid.XLeftBound += shiftVector.X; spriteGrid.XRightBound += shiftVector.X; spriteGrid.YTopBound += shiftVector.Y; spriteGrid.YBottomBound += shiftVector.Y; spriteGrid.ZCloseBound += shiftVector.Z; spriteGrid.ZFarBound += shiftVector.Z; } mSpriteFrames.Shift(shiftVector); mTexts.Shift(shiftVector); }