// Finds and glows piece and tile at a given position private static void FindAndGlow(int row, int col) { GameObject foundTile; foundTile = chessboardManager.FindTile(row, col); if (foundTile != null) { foundTile.GetComponent <TileIAction>().SetGlow(true); } GameObject foundPiece; foundPiece = chessboardManager.FindPiece(row, col); if (foundPiece != null) { foundPiece.GetComponent <ChessPieceIAction>().SetGlow(true); } }