void Awake() { ResourceCount = 0; _transform = GetComponent<Transform>(); AllTiles = new Tile[width * height]; }
void InitialiseTiles() { for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { Tile tile = new Tile(new Vector2(i, j)); AllTiles[i*height + j] = tile; } } }