Пример #1
0
 public void deleteAllDisks()
 {
     for (int i = 0; i < RackUtil.SIZE; i++)
     {
         for (int j = 0; j < RackUtil.SIZE; j++)
         {
             var disk = RackUtil.myRack [i] [j].disk;
             RackUtil.deleteDisk(i, j);
             Destroy(disk);
         }
     }
 }
Пример #2
0
 public void deleteColumn(int column)
 {
     GameUtil.isAnimating = true;
     for (int i = 0; i < RackUtil.SIZE; i++)
     {
         var disk = RackUtil.myRack [i] [column].disk;
         RackUtil.deleteDisk(i, column);
         Destroy(disk);
     }
     StartCoroutine(ColumnDeleteTask());
     GameUtil.playOneShot("Special activate");
 }
Пример #3
0
 public void deleteRow(int row)
 {
     for (int i = 0; i < RackUtil.SIZE; i++)
     {
         var disk = RackUtil.myRack [row] [i].disk;
         RackUtil.deleteDisk(row, i);
         Destroy(disk);
     }
     GameUtil.isAnimating = true;
     StartCoroutine(RowDeleteTask(row, 0.5f));
     GameUtil.playOneShot("InGameSound");
     GameUtil.playOneShot("Special activate");
 }