/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnDestroy()"/>.</summary> protected override void OnDestroy() { if( EntitySystemWorld.Instance.IsServer() ) { GameNetworkServer.Instance.CustomMessagesService.ReceiveMessage -= SpawnInfo; } base.OnDestroy(); instance = null; }
public GameWorld() { instance = this; }
/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnDestroy()"/>.</summary> protected override void OnDestroy() { base.OnDestroy(); instance = null; }