Files
Fishing2/Assets/Scripts/Model/Net/MessageHandler/Chat2C_MessageHandler.cs
2025-11-12 17:24:02 +08:00

21 lines
597 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Fantasy.Async;
using Fantasy.Network;
using Fantasy.Network.Interface;
using NBC;
namespace NBF
{
public class Chat2C_MessageHandler : Message<S2C_Message>
{
protected override async FTask Run(Session session, S2C_Message message)
{
Log.Debug($"收到一条消息推送message={message.Message}");
var chatTestPanel = App.UI.GetUI<ChatTestPanel>();
if (chatTestPanel != null)
{
chatTestPanel.Message(message.Message.Content);
}
await FTask.CompletedTask;
}
}
}