void CheckForLines() { //loop through all rows from up to down in the grid for (int i = height - 1; i >= 0; i--) { if (HasLine(i)) { //isPlay must come after the row is assigned in ParticalController, otherwise the row will not be send to that class on time, so no row change, no partical will display //isPay might be set to false after the line is deleted DeleteLine(i); RowDown(i); //show the visual and audio effects in innovation mode if (currentSceneName == "SampleScene") { pointControl.UpdatePoint(); dac.PlayAudio(); ParticalController.row = i; particalControl.DisplayPartical(); } } } }