diff --git a/Assets/Scripts/Project/UI/UI_Panel/UI_CustomSessionPanel.cs b/Assets/Scripts/Project/UI/UI_Panel/UI_CustomSessionPanel.cs index 6efdc28..c11a7ee 100644 --- a/Assets/Scripts/Project/UI/UI_Panel/UI_CustomSessionPanel.cs +++ b/Assets/Scripts/Project/UI/UI_Panel/UI_CustomSessionPanel.cs @@ -21,7 +21,7 @@ public class UI_CustomSessionPanel : BasePanel this.triggerID = triggerID; callBack += _callBack; GetControl("ClientText_DialogBox").text = clientTalk /*"好的"*/; - UItext.text = GetControl("ClientText_DialogBox").text; + UItext = GetControl("ClientText_DialogBox"); StartTypewriterEffect(); } diff --git a/Assets/Scripts/Project/UI/UI_Panel/UI_PlayerSessionPanel.cs b/Assets/Scripts/Project/UI/UI_Panel/UI_PlayerSessionPanel.cs index 99a0ce8..3bee0d9 100644 --- a/Assets/Scripts/Project/UI/UI_Panel/UI_PlayerSessionPanel.cs +++ b/Assets/Scripts/Project/UI/UI_Panel/UI_PlayerSessionPanel.cs @@ -21,7 +21,7 @@ public class UI_PlayerSessionPanel : BasePanel this.triggerID = triggerID; callBack += _callBack; GetControl("PlayerText_DialogBox").text = clientTalk /*"ºÃµÄ"*/; - UItext.text = GetControl("PlayerText_DialogBox").text; + UItext = GetControl("PlayerText_DialogBox"); StartTypewriterEffect(); }