/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnRelatedEntityDelete(Entity)"/></summary> protected override void OnRelatedEntityDelete( Entity entity ) { base.OnRelatedEntityDelete( entity ); if( entity == destination ) { destination = null; if( EntitySystemWorld.Instance.IsServer() || EntitySystemWorld.Instance.IsSingle() ) UpdateRegion(); } }
/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnRelatedEntityDelete(Entity)"/></summary> protected override void OnRelatedEntityDelete( Entity entity ) { base.OnRelatedEntityDelete( entity ); if( entity == destination ) { destination = null; UpdateRegion(); } }