public void DeleteButton() { RulePresetSelector matchingSelector = MatchingSelector(CurrentlyWorkshoppedGameRules); RulePresetSelectors.Remove(matchingSelector); ObjectPooler.ReturnObject(matchingSelector); GameRules nextRuleSet = SaveDataManager.GetNextRuleSet(CurrentlyWorkshoppedGameRules); SaveDataManager.DeleteRuleSet(CurrentlyWorkshoppedGameRules); SetRulesFromPreset(nextRuleSet); }