예제 #1
0
        public void AddTextToBlock(string speaker, string text)
        {
            MessageBlock messageBlock = GetMessageBlock(speaker);

            if (messageBlock != null)
            {
                messageBlock.AddText(text);
            }
        }
예제 #2
0
        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);
        }