private void TogglePriorityWindowActiveState(WindowController window) { if (window.ToggleWindowActiveState()) { priorityWindowCount++; } else { priorityWindowCount--; } }
public void ToggleWindowActiveState(WindowController window) { if (window.ToggleWindowActiveState()) { activeWindows.Add(window); } else { activeWindows.Remove(window); } Debug.Log($"after {activeWindows.Count}"); }