using ETModel; namespace ETHotfix { [ObjectSystem] public class SessionPlayerComponentDestroySystem : DestroySystem { public override void Destroy(SessionPlayerComponent self) { // 发送断线消息 ActorLocationSenderComponent.Instance.Send(self.Player.UnitId, new G2M_SessionDisconnect()); Game.Scene.GetComponent()?.Remove(self.Player.Id); } } }