protected virtual IEnumerator DeleteColumns(ILinesChecker linesChecker) { Line[] lines = linesChecker.GetLines(gridArray); if (lines.Length > 0) { combo++; Delete(lines); yield return(new WaitForSeconds(sceneData.BlockPrefab.ClipDuration)); yield return(Grounding(0.1f)); yield return(DeleteColumns(linesChecker)); } combo = 0; }
protected override IEnumerator DeleteColumns(ILinesChecker linesChecker) { Line[] lines = linesChecker.GetLines(gridArray); if (lines.Length > 0) { combo++; ToolBox.EnableCoroutine(TryUnlockLine(lines)); Delete(lines); yield return(new WaitForSeconds(sceneData.BlockPrefab.ClipDuration)); yield return(Grounding(0.1f)); yield return(DeleteColumns(linesChecker)); } combo = 0; }