Declaration
public Square Move(
Square.Direction dir,
int amount = 1
)Summary
Moves the current cell a number of spaces in the specified direction.
Parameters
| Square.Direction | dir |
Direction to move in. |
| int | amount |
Number of cells to move by. Default is 1. |
Exceptions
- System.ArgumentOutOfRangeException
The value of dir was not one of the defined enum values of Square.Direction.