public virtual void Awake()
 {
     if (typewriterEffect == null)
     {
         typewriterEffect = GetComponentInChildren <UnityUITypewriterEffect>();
     }
     continueButton = GetComponent <UnityEngine.UI.Button>();
 }
        public static AbstractTypewriterEffect GetTypewriter(UITextField textField)
        {
            AbstractTypewriterEffect typewriter = null;

#if TMP_PRESENT
            if (textField.textMeshProUGUI != null)
            {
                typewriter = textField.textMeshProUGUI.GetComponent <TextMeshProTypewriterEffect>();
            }
#endif
            if (typewriter == null && textField.uiText != null)
            {
                typewriter = textField.uiText.GetComponent <UnityUITypewriterEffect>();
            }
            return(typewriter);
        }
 public static float GetTypewriterSpeed(AbstractTypewriterEffect typewriter)
 {
     return((typewriter != null) ? typewriter.GetSpeed() : -1);
 }