Ejemplo n.º 1
0
 public static void AddGameEndedInvoker(HUD invoker)
 {
     GameEndedInvokers.Add(invoker);
     foreach (var listener in GameEndedListeners)
     {
         invoker.AddGameEndedListener(listener);
     }
 }
 /// <summary>
 /// Adds a GameEnded invoker
 /// </summary>
 /// <param name="invoker">invoker</param>
 public static void AddGameEndedInvoker(HUD invoker)
 {
     // add listeners to new invoker and add new invoker to list
     foreach (UnityAction listener in gameEndedListeners)
     {
         invoker.AddGameEndedListener(listener);
     }
     gameEndedInvokers.Add(invoker);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds the given script as a ball lost invoker
 /// </summary>
 /// <param name="invoker">invoker</param>
 public static void AddGameEndedInvoker(HUD invoker)
 {
     // add invoker to list and add all listeners to invoker
     gameEndedInvokers.Add(invoker);
     foreach (UnityAction <int, int> listener in gameEndedListeners)
     {
         invoker.AddGameEndedListener(listener);
     }
 }