I have created an array of Vectors that creates a grid of 15x15 squares, but now I'm struggling to figure out how to check if a specific cell is vacant or not. It's kind of an active battleship style game, and I just can't figure out how to determine if there is something inside of a cell. Basically I want to be able to set a value to a cell occupied by any object with a collision box. For example:
0: Cell is vacant 1: Cell is occupied by an object
0: Cell is vacant 1: Cell is occupied by an object
Comment