public override void Rotate(RotationDirection direction, GridLayout.CellLayout layout) { LayerTile tile = cells[0].tile as LayerTile; if (tile != null) { cells[0].matrix = tile.Rotate(cells[0].matrix, direction == RotationDirection.Clockwise); } }
public override void Rotate(RotationDirection direction, GridLayout.CellLayout layout) { if (Event.current.character == '<' || Event.current.character == ',') { LayerTile tile = cells[0].tile as LayerTile; if (tile != null) { cells[0].matrix = tile.Rotate(cells[0].matrix, direction == RotationDirection.Clockwise); } } }