public void VerticalDestroy(int type) { if (type == 1) { rGroup++; ui.ShowRedGroup(rGroup); } else if (type == 2) { gGroup++; ui.ShowGreenGroup(gGroup); } else if (type == 3) { bGroup++; ui.ShowBlueGroup(bGroup); } AddScore(10); ui.ShowIPG(GetIPG()); }