Browse Source

修改事件对话

lzx 1 week ago
parent
commit
749046f286
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Assets/Scripts/GameUI/UI/DialoguePanel/DialoguePanel.cs

+ 4 - 0
Assets/Scripts/GameUI/UI/DialoguePanel/DialoguePanel.cs

@@ -400,6 +400,10 @@ namespace Fort23.Mono
                 case ShowDialogueEventData.MessageShowType.Verbatim:
                     _sb.Clear();
                     _currShowMessage = m.ToCharArray();
+                    if (eventConditionConfig.step == 1 && eventConditionConfig.NPCID == 100 && PlayerManager.Instance.PlayerName != String.Empty)
+                    {
+                        _sb.Append(PlayerManager.Instance.PlayerName + ":");
+                    }
                     _sb.Append(_currShowMessage[0]);
                     showText.text = _sb.ToString();
                     _isUpdate = true;