private void TryRotate(Shape shape) { if (_gameBoard.CanRotate(shape)) { shape.Rotate(); } }
public void Rotate() { if (_myBoard.CanRotate()) { Orientation = (Orientation + 1) % 4; myBox = PieceData.Rotate(myBox); } }
private void TryRotate(Shape shape) { if (_gameBoard.CanRotate(shape)) { shape.Rotate(); } }
public void Rotate() { if (_myBoard.CanRotate()) { Orientation = (Orientation + 1) % 4; myBox = PieceData.Rotate(myBox); } }