Ejemplo n.º 1
0
 /// <summary>
 /// Adds the given script as a ball lost invoker
 /// </summary>
 /// <param name="invoker">invoker</param>
 public static void AddBonusBarRestartedInvoker(Background invoker)
 {
     // add invoker to list and add all listeners to invoker
     bonusBarRestartedInvokers.Add(invoker);
     foreach (UnityAction listener in bonusBarRestartedListeners)
     {
         invoker.AddBonusBarRestartedListener(listener);
     }
 }