Example #1
0
 public static void AddBlockDestroyedInvoker(Block invoker)
 {
     BlockDestroyedInvokers.Add(invoker);
     foreach (var listener in BlockDestroyedListeners)
     {
         invoker.AddBlockDestroyedListener(listener);
     }
 }
Example #2
0
 public static void AddInvokerBlocDestroyed(Block invoker)
 {
     invokersBlockDestroyed.Add(invoker);
     foreach (UnityAction listener in listenerBlockDestroyed)
     {
         invoker.AddBlockDestroyedListener(listener);
     }
 }
Example #3
0
 public static void AddBlockDestroyedInvoker(Block invoker)
 {
     blockDestroyedInvokers.Add(invoker);
     foreach (UnityAction listener in blockDestroydeListeners)
     {
         invoker.AddBlockDestroyedListener(listener);
     }
 }
Example #4
0
 public static void BlockDestroyedInvoker(Block script)
 {
     blockDestroyedInvokers.Add(script);
     foreach (UnityAction listener in blockDestroyedListeners)
     {
         script.AddBlockDestroyedListener(listener);
     }
 }
Example #5
0
 /// <summary>
 /// Adds the given script as a block destroyed invoker
 /// </summary>
 /// <param name="invoker">invoker</param>
 public static void AddBlockDestroyedInvoker(Block invoker)
 {
     // add invoker to list and add all listeners to invoker
     blockDestroyedInvokers.Add(invoker);
     foreach (UnityAction listener in blockDestroyedListeners)
     {
         invoker.AddBlockDestroyedListener(listener);
     }
 }