public string GetName() { if (_markovGenerator == null) { var textArray = _textAsset.text.Split(_splitWords); _markovGenerator = new MarkovNameGenerator(textArray, _order, _minLength); } return(_markovGenerator.NextName()); }
public void Reset() { var textArray = _textAsset.text.Split(_splitWords); _markovGenerator = new MarkovNameGenerator(textArray, _order, _minLength); }