Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Cell[,] mapCells = new Cell[10, 10];
- bool cellExists = index.x >= 0 && // check left
- index.y >= 0 && // check bottom
- index.x < mapCells.GetLength(0) && // check right
- index.y < mapCells.GetLength(1); // check top
Add Comment
Please, Sign In to add comment