17 lines
453 B
C#
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;
|
|
}
|
|
} |