//Control public void UpdateComboableSquares() { boardAnalyzer bA = new boardAnalyzer(board, currentDirection); board = bA.CheckAllSquaresForCombo(); moveList = new List <List <boardSquare> >(); moveList = bA.MovesList; }
public void UpdateComboableSquares() { boardAnalyzer bA = new boardAnalyzer(board, currentDirection); board = bA.CheckAllSquaresForCombo(); moveList = bA.MovesList; //Debug.Log("Finished Updating Targetable Squares"); }
public void DestroyAdjacentSquares(boardSquare square) { if (square.Comboable) { boardAnalyzer bA = new boardAnalyzer(board, currentDirection); foreach (boardSquare bs in bA.CheckSquareForAdjacency(square)) { if (bs != square) { TryDestroyGem(bs, true); } } } }
boardSquare GetNextGemToFall(boardSquare square) { boardAnalyzer bA = new boardAnalyzer(board, currentDirection); return(bA.RecurseToNextGem((int)square.transform.position.x, (int)square.transform.position.y, bA.DirectionX, bA.DirectionY)); }