Creating 2D gameboard/ grid in Unity with C#
<p>I'm new to Unity and programming and I'm trying to make this game with moving cars on gameboard. My idea is to create an array and somehow store information about each element or tile in this array. I'd like these tiles to be able to be referenced to later, e.g. to detect if there is car GO on specific tile or not, etc. Unfortunately I¨m struggling how exactly should I save information to a tile so I can reference to it later, I mean later when I create a method which should be able to detect if that tile is occupied or not.
Thank you for all advices in advance!</p>