private static void onClickedRemoveTableButton(SleekButton button) { if ((int)EditorSpawns.selectedItem < LevelItems.tables.Count) { LevelItems.removeTable(); EditorSpawnsItemsUI.updateTables(); EditorSpawnsItemsUI.updateSelection(); EditorSpawnsItemsUI.tableScrollBox.state = new Vector2(0f, float.MaxValue); } }