Beispiel #1
0
   /// <summary>
   /// Removes A ll listener with editor.
   /// </summary>
   /// <param name="myEvent">My event.</param>
   /// <typeparam name="T0">The 1st type parameter.</typeparam>
   public static void RemoveALlListenerWithEditor <T0>(this UnityEvent <T0> myEvent)
   {
 #if UNITY_EDITOR
       myEvent.RemoveAllPersistentListeners();
 #else
       myEvent.RemoveAllListeners();
 #endif
   }