Skip to content

Commit

Permalink
minor fix on cell position calculation to display on UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ninetailsrabbit committed Jun 6, 2024
1 parent 2218d62 commit 7230d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Match3Maker/src/components/Board.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void Unlock() {
}

public Vector2 CellPosition(GridCell cell)
=> new(CellSize.X * cell.Column + (Offset.X * cell.Column), CellSize.Y * cell.Row + (Offset.Y * cell.Row));
=> new(CellSize.X * cell.Column + Offset.X, CellSize.Y * cell.Row + Offset.Y);

public Board PrepareGridCells(bool overwrite = false) {

Expand Down

0 comments on commit 7230d22

Please sign in to comment.