Eintoo/GameServer/Server/Hotfix/Outter/Gate/GameAccount/GameAccountFlagComponentSystem.cs
2025-04-22 15:31:25 +08:00

17 lines
453 B
C#

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