public void AddTextToBlock(string speaker, string text) { MessageBlock messageBlock = GetMessageBlock(speaker); if (messageBlock != null) { messageBlock.AddText(text); } }
public void StartMessageBlock(string speaker, UnityEngine.Vector3Int?position, string text) { if (speaker == null) { return; } if (GetMessageBlock(speaker) != null) { _currentBlock.Dispose(true); } if (_currentBlock != null) { _currentBlock.Dispose(false); } _currentBlock = new MessageBlock(speaker, position); _currentBlock.AddText(text); }