public static void UnregisterBroadcastReceiver <T>(GameObject go) where T : IConsentEventHandler { if (BroadcastsReceivers.ContainsKey(typeof(T)) && BroadcastsReceivers[typeof(T)].Contains(go)) { BroadcastsReceivers[typeof(T)].Remove(go); } else { CmpDebugUtil.LogWarning($"{go.name} is not subscribed to handle {typeof(T)}"); } }