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

            _markovGenerator = new MarkovNameGenerator(textArray, _order, _minLength);
        }