CTT/Unity/Assets/HotfixView/Event/UI/AddChatUITextEvent.cs

21 lines
482 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using ET.EventType;
using ET;
using System;
using System.Collections.Generic;
namespace ET
{
public class AddChatUITextEvent : AEvent<AddChatUIText>
{
public override async ETTask Run(AddChatUIText args)
{
if (args.isSysBrocast)
MainUIGlobalText.Instance.Init(args.chatContent);
var chat = MainUI.GetChatContiator;
chat.Refresh(args.chatType);
await ETTask.CompletedTask;
}
}
}