// Start is called before the first frame update void Start() { thisChoiceTxt = paragraphTile.GetComponentInChildren <Text>(); leanLocalizedTxt = paragraphTile.GetComponentInChildren <LeanLocalizedText>(); typingAnimator = GetComponentInParent <TextTypingAnimation>(); highlightAnimator = BG.GetComponentInParent <Animator>(); }
public void Play(string headerStr, string massage, LeanLocalizedText leanLocalizedTxt, TypingTextDirection currentTyptingDirection) { this.currentTyptingDirection = currentTyptingDirection; this.leanLocalizedTxt = leanLocalizedTxt; if (headerTxt) { headerTxt.text = ""; headerTxt.text = headerStr; } if (contentTxt) { contentTxt.text = ""; } ltrStrMessage = ""; ltrStrMessage = massage; if (currentcourtine != null) { StopCoroutine(currentcourtine); } currentcourtine = TypeText(); StartCoroutine(currentcourtine); }