Exemple #1
0
 void CleanUpListeners()
 {
     Delegate[] listeners = OnScoreChanged.GetInvocationList();
     foreach (Delegate listener in listeners)
     {
         OnScoreChanged -= (listener as Action <int>);
     }
 }