public void ClearPreference(string tag) { if (TagsToInclude.Remove(tag) || TagsToExclude.Remove(tag)) { Debug.Log($"Cleared preference for tag '{tag}'."); } else { Debug.Log($"Tag '{tag}' already set to 'no preference'."); } }
public void ToggleTag(string newTag) { if (!TagsToInclude.Contains(newTag)) { TagsToInclude.Add(newTag); } else if (TagsToInclude.Contains(newTag)) { TagsToInclude.Remove(newTag); } }
public void ActivateExcludeTag(string tag) { if (TagsToInclude.Contains(tag)) { TagsToInclude.Remove(tag); } if (TagsToExclude.Add(tag)) { Debug.Log($"Excluded tag '{tag}'."); } else { Debug.Log($"Tag '{tag}' is already excluded."); } }