// Start is called before the first frame update void Start() { FindMatches = FindObjectOfType <UpgradedMatchFinder>(); alltiles = new BackgroundTile[width, height]; allStones = new GameObject[width, height]; SetUp(); }
void Start() { board = FindObjectOfType <Board>(); findMatches = FindObjectOfType <UpgradedMatchFinder>(); /*targetX = (int)transform.position.x; * targetY = (int)transform.position.y; * row = targetY; * column = targetX; * if (board.SecondRow) * { * targetY++; * row++; * board.SecondRow = false; * } * if (targetY == 0) * { * board.SecondRow = true; * }*/ //previousRow = row; //previousColumn = column; }