public void SetAutoTextWait() { if (gameSystem.IsAuto) { float num = (float)(100 - AutoPageSpeed) / 100f * 2f; float num2 = textTimeRemaining + timePerLine * num; if (lastMode != BurikoTextModes.Continue && lastMode != BurikoTextModes.ContinueAftertyping) { num2 += (float)charList.Count * 0.01f * num; } gameSystem.AddWait(new Wait(num2, WaitTypes.WaitForAuto, delegate { gameSystem.ClearInputWaits(); })); } }