Example #1
0
        public override async ETTask G2M_SessionDisconnectHandler(Unit unit, G2M_SessionDisconnect message)
        {
            unit.GetComponent <UnitGateComponent>().IsDisconnect = true;
            await unit.Save();

            PlayerComponent.Instance.Remove(unit.PlayerId);
            unit.Domain.GetComponent <UnitComponent>().Remove(unit.Id);
            await ETTask.CompletedTask;
        }
Example #2
0
 public virtual async ETTask G2M_SessionDisconnectHandler(Unit unit, G2M_SessionDisconnect message)
 {
 }