Exemplo n.º 1
0
 public void TypeCharacterInChat(char character)
 {
     isCaretPaused = true;
     RemoveCaret();
     responseBarText.text += character;
     ScrollResponseBarToEnd();
     AudioPlayer.Instance.PlayRandomKeyboardClick();
     FinishedTypingEvent?.Invoke();
     isCaretPaused = false;
 }
Exemplo n.º 2
0
 private IEnumerator TypeWordInChatOneLetterAtATime(string word)
 {
     isCaretPaused = true;
     RemoveCaret();
     responseBarText.text += " ";
     AudioPlayer.Instance.PlayRandomKeyBoardMultiClick();
     foreach (char character in word)
     {
         responseBarText.text += character;
         ScrollResponseBarToEnd();
         yield return(new WaitForSeconds(0.07f));
     }
     FinishedTypingEvent?.Invoke();
     isCaretPaused = false;
 }