public string Condition(ContitionContainer c) { conditionCounter++; if (!letterMatrix.ignore) { if (!letterMatrix.currentBlockBuilded) { if (conditionsMadeCounter >= conditionCounter) { letterMatrix.currentBlock = null; letterMatrix.specialCondition = true; letterMatrix.currentBlockIndex++; letterMatrix.DestroyBlockAt(0); } else { letterMatrix.specialCondition = false; currentConditionContainer = c; } } } if (conditionsMadeCounter < conditionCounter) { return(""); } else { return(conditionsMade[conditionCounter - 1]); } }
void CheckCurrentCondition() { if (currentConditionContainer != null) { string r = currentConditionContainer.Invoke(); if (r != "") { conditionsMadeCounter++; conditionsMade.Add(r); currentConditionContainer = null; } } }