Exemplo n.º 1
0
 public static void DeleteLine(int r)
 {
     for (int l = 0; l < width; l++)
     {
         Destroy(grid[l, r].gameObject);
         grid[l, r] = null;
     }
     scoreBase.AddScore(50 * width);
 }
Exemplo n.º 2
0
 public static void DeleteLine(int r)
 {
     for (int l = 0; l < width; l++)
     {
         if (grid[l, r] != null)
         {
             Destroy(grid[l, r].gameObject);
             grid[l, r] = null;
             scoreBase.AddScore(10 * scoreMultiplier);
         }
     }
     soundBase.Play();
 }