Eintoo/GameServer/Server/Hotfix/Outter/Gate/GameAccount/GameAccountFlagComponentSystem.cs

17 lines
456 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* 60 * 5).Coroutine();
self.AccountId = 0;
}
self.Account = null;
}
}