public void AddBreakInMatrix(int row, int col, int piece = 0)
 {
     //GameObject breakPiece = SpawnObjectPools(breakParticle, PointFinish(row, col), MatrixMain.transform);
     //listObjectSpawn.Add(breakPiece);
     AutoSpawnAndDespawn(breakParticle, PointFinish(row, col), 1.5f, MatrixMain.transform);
     if (piece != 0)
     {
         GameObject spriteValue = (GameObject)listPiece[piece].Load();
         GameObject pieceBreak  = SpawnObjectPools(spriteValue, PointFinish(row, col), MatrixMain.transform);
         listObjectSpawn.Add(pieceBreak);
         Piece_Control pieceControl = pieceBreak.GetComponent <Piece_Control>();
         pieceControl.InitData();
         pieceControl.FlashingObject(true);
     }
 }
 public void AddPieceInMatrix(int value, int row, int col)
 {
     if (matrix_Piece[row, col] != null)
     {
         SelfDestruction_Object_Pools(matrix_Piece[row, col]);
         matrix_Piece[row, col] = null;
     }
     if (value != 0)
     {
         GameObject spriteValue = (GameObject)listPiece[value].Load();
         GameObject piece       = SpawnObjectPools(spriteValue, PointFinish(row, col), MatrixMain.transform);
         matrix_Piece[row, col] = piece;
         Piece_Control piece_Control = piece.GetComponent <Piece_Control>();
         piece_Control.InitData();
         listObjectSpawn.Add(piece);
     }
 }
 public void TweenPressMoveVerticalFalling(int value, int col, int row, int rowfn)
 {
     if (matrix_Piece[row, col] != null)
     {
         SelfDestruction_Object_Pools(matrix_Piece[row, col]);
         matrix_Piece[row, col] = null;
     }
     if (value != 0)
     {
         GameObject spriteValue = (GameObject)listPiece[value].Load();
         GameObject piece       = SpawnObjectPools(spriteValue, PointFinish(row, col), MatrixMain.transform);
         matrix_Piece[row, col] = piece;
         Piece_Control piece_Control = piece.GetComponent <Piece_Control>();
         piece_Control.InitData();
         listObjectSpawn.Add(piece);
         LeanTween.moveLocalY(piece, VectorRowFinish(rowfn), TIMETWEEN_VERTICAL);
     }
 }