diff --git a/Assets/Scripts/Chat/ChatUI.cs b/Assets/Scripts/Chat/ChatUI.cs index 4f76c00..0454eb7 100644 --- a/Assets/Scripts/Chat/ChatUI.cs +++ b/Assets/Scripts/Chat/ChatUI.cs @@ -46,13 +46,13 @@ public class ChatUI : MonoBehaviour void Set_Chat(ChatHistory chat) { - if (chat.role.Equals("girl")) + if (chat.role.Equals("assistant")) { var chatscript = DSUtil.Get_Clone(go_chatGirlCard, tf_parent); chatscript.Set(m_Data.n_GirlID, chat.content); list_chat.Add(chatscript.gameObject); } - else if (chat.role.Equals("me")) + else if (chat.role.Equals("user")) { var chatscript = DSUtil.Get_Clone(go_chatMyCard, tf_parent); chatscript.Set(chat.content); @@ -97,7 +97,7 @@ public class ChatUI : MonoBehaviour var myhistory = new ChatHistory { - role = "me", + role = "user", content = if_msg.text, timestamp = InternetTime.Ins.Time.ToString() }; @@ -125,7 +125,7 @@ public class ChatUI : MonoBehaviour var girlchathistory = new ChatHistory { - role = "girl", + role = "assistant", content = data.response, timestamp = InternetTime.Ins.Time.ToString() };