Exemplo n.º 1
0
 public static void AddBlockDestroyedInvoker(Block invoker)
 {
     BlockDestroyedInvokers.Add(invoker);
     foreach (var listener in BlockDestroyedListeners)
     {
         invoker.AddBlockDestroyedListener(listener);
     }
 }
Exemplo n.º 2
0
 public static void AddInvokerBlocDestroyed(Block invoker)
 {
     invokersBlockDestroyed.Add(invoker);
     foreach (UnityAction listener in listenerBlockDestroyed)
     {
         invoker.AddBlockDestroyedListener(listener);
     }
 }
Exemplo n.º 3
0
 public static void AddBlockDestroyedInvoker(Block invoker)
 {
     blockDestroyedInvokers.Add(invoker);
     foreach (UnityAction listener in blockDestroydeListeners)
     {
         invoker.AddBlockDestroyedListener(listener);
     }
 }
Exemplo n.º 4
0
 public static void BlockDestroyedInvoker(Block script)
 {
     blockDestroyedInvokers.Add(script);
     foreach (UnityAction listener in blockDestroyedListeners)
     {
         script.AddBlockDestroyedListener(listener);
     }
 }
Exemplo n.º 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);
     }
 }