using Fantasy; using Fantasy.Entitas.Interface; namespace Hotfix; public class GameAccountFlagComponentDestroySystem : DestroySystem { protected override void Destroy(GameAccountFlagComponent self) { if (self.AccountId != 0) { GateComponentHelper.Disconnect(self.Scene,self.AccountId,1000* 60 * 5).Coroutine(); self.AccountId = 0; } self.Account = null; } }