24 lines
711 B
C#
24 lines
711 B
C#
using ET.EventType;
|
|
|
|
namespace ET
|
|
{
|
|
public class AfterEnterGameEvent:AEvent<AfterEnterGame>
|
|
{
|
|
public override async ETTask Run(AfterEnterGame args)
|
|
{
|
|
var unit = args.unit;
|
|
await ETTask.CompletedTask;
|
|
//同步玩家的信息
|
|
//宠物
|
|
//任务
|
|
//签到
|
|
bool isGetSininReward = ActiveComponent.instance.QuerySigninReward(unit, out var config);
|
|
int currConfigId = (int) config.Id;
|
|
MessageHelper.SendActor(unit,new M2C_SendActiveInfo()
|
|
{
|
|
isGetSininReward = isGetSininReward,
|
|
signinCurrId = currConfigId,
|
|
});
|
|
}
|
|
}
|
|
} |