protected override void OnUpdated() { base.OnUpdated(); if (!WorldService.WorldBounds.Contains(this.CurrentMouseTilePosition)) { return; } var tile = WorldService.GetTile(this.CurrentMouseTilePosition); var staticWorldObjects = tile.StaticObjects; this.RefreshTooltip(staticWorldObjects); if (ClientInputManager.IsButtonDown(EditorButton.EditorDeleteSelectedObjects)) { this.deleteCallback(this.SelectedWorldObjects); } this.selectedWorldObjects.RemoveWhere( worldObject => { if (!worldObject.IsDestroyed) { return(false); } this.selectionComponent.Deselect(worldObject); return(true); }); }