Exemple #1
0
 /// <summary>
 /// Adds the given script as a ball died invoker
 /// </summary>
 /// <param name="invoker">invoker</param>
 public static void AddBallDiedInvoker(Ball invoker)
 {
     ballDiedInvokers.Add(invoker);
     foreach (UnityAction listener in ballDiedListeners)
     {
         invoker.AddBallDiedListener(listener);
     }
 }
Exemple #2
0
 /// <summary>
 /// Adds the given script as a ball diedinvoker
 /// </summary>
 /// <param name="invoker">invoker</param>
 public static void AddBallDiedInvoker(Ball invoker)
 {
     // add invoker to list and add all listeners to invoker
     ballDiedInvokers.Add(invoker);
     foreach (UnityAction listener in ballDiedListeners)
     {
         invoker.AddBallDiedListener(listener);
     }
 }