示例#1
0
 public void TypeText(string myText, TypedTextSettings settings)
 {
     if(string.IsNullOrEmpty(myText))
         return;
     // This should be a struct or deep cloned to prevent editing externally
     this.settings = settings;
     CreateDelayDictionary(settings.customTypeDelays, out customStringTypeTimeDictionary);
     CreateDelayDictionary(settings.customPostTypePause, out customPostTypePauseDictionary);
     targetText += myText;
     typing = true;
     currentSplitStringIndex = 0;
     splitString = GetSplitText(myText);
     TypeCurrentString();
 }
示例#2
0
 public void TypeText(string myText, TypedTextSettings settings)
 {
     if (string.IsNullOrEmpty(myText))
     {
         return;
     }
     // This should be a struct or deep cloned to prevent editing externally
     this.settings = settings;
     CreateDelayDictionary(settings.customTypeDelays, out customStringTypeTimeDictionary);
     CreateDelayDictionary(settings.customPostTypePause, out customPostTypePauseDictionary);
     targetText += myText;
     typing      = true;
     currentSplitStringIndex = 0;
     splitString             = GetSplitText(myText);
     TypeCurrentString();
 }