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."); } }