| 12345678910111213141516171819202122 | namespace ET{	public class SessionComponentDestroySystem: DestroySystem<SessionComponent>	{		public override void Destroy(SessionComponent self)		{			self.AccountSession?.Dispose();			self.Session?.Dispose();		}	}	public static class SessionComponentComponent    {		public static void Disconnect(this SessionComponent self)		{			self.AccountSession?.GetComponent<DisConnectedCompnent>()?.CancelAlert();			self.AccountSession?.Dispose();			self.Session?.GetComponent<DisConnectedCompnent>()?.CancelAlert();			self.Session?.Dispose();		}    }}
 |