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(); }
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(); }