public Interaction TalkInCircles(int millisecondTimeout = 5000, params string[] textLines) { if (null == _incrementer) { _incrementer = new IndexIncrement(textLines.Length, true); } string text = textLines[_incrementer.Next]; Interaction result = new Interaction(); _renderer.Clear(); _renderer.Write(text); result.displayText = text; Thread.Sleep(millisecondTimeout); return(result);; }
public void ResetIncrementer() { _incrementer = null; }
public Interaction TalkInCircles(int millisecondTimeout = 5000, params string[] textLines) { if (null == _incrementer) _incrementer = new IndexIncrement(textLines.Length, true); string text = textLines[_incrementer.Next]; Interaction result = new Interaction(); _renderer.Clear(); _renderer.Write(text); result.displayText = text; Thread.Sleep(millisecondTimeout); return result; ; }