Пример #1
0
 public void SetTokenName(string tokenName)
 {
     if (!(logEntryBuffer.Count == 0))
     {
         var logEntry = new MessageLogEntry()
         {
             Speaker = currentTokenName, MessageBuffers = logEntryBuffer.ToArray(), ID = ++logID
         };
         messageLogger.LogMessage(logEntry);
         logEntryBuffer.Clear();
     }
     currentTokenName = tokenName;
     messageView.TokenNameText.text = tokenName;
 }
Пример #2
0
 public void ClearMessage()
 {
     if (!(logEntryBuffer.Count == 0))
     {
         var logEntry = new MessageLogEntry()
         {
             Speaker = currentTokenName, MessageBuffers = logEntryBuffer.ToArray(), ID = ++logID
         };
         messageLogger.LogMessage(logEntry);
         logEntryBuffer.Clear();
     }
     messageBuffer.Clear();
     renderBufferCount = 0;
     typingEffectAnimator.Clear();
 }