private static bool ShouldShowIconSub(StatusItem statusItem, GameObject gameObject) { return(gameObject.GetComponent <StatusItemsSuppressedComp>()?.ShouldShowIcon(statusItem) ?? statusItem.ShouldShowIcon()); }
public bool ShouldShowIcon(StatusItem statusItem) { return(statusItem.ShouldShowIcon() && !suppressedStatusItemTitles.Contains(statusItem.Name)); }