public static void UnregisterPersistentListeners(this UnityEventBase self) { var count = self.GetPersistentEventCount(); for (var i = 0; i < count; ++i) { UnityEventTools.UnregisterPersistentListener(self, i); } }
public static void UnregisterPersistentListener(this UnityEventBase self, int index) { UnityEventTools.UnregisterPersistentListener(self, index); }