コード例 #1
0
 // Destroys chars that made a match, generates a new effect instance and adds score
 private void DestroyMatchesAt(int column, int row)
 {
     if (allChars[column, row].GetComponent <CharController>().isMatched)
     {
         Instantiate(destroyEffect, allChars[column, row].transform.position, Quaternion.identity);
         _gc.count++;
         _gc.Scored(_gc.count);
         Destroy(allChars[column, row]);
         _gc.playMatchSFX();
         allChars[column, row] = null;
     }
 }