public static void AddBlockDestroyedInvoker(BlockDestroyed inputEvent)
 {
     blockDestroyedInvokers.Add(inputEvent);
     foreach (var currentAction in blockDestroyedListeners)
     {
         inputEvent.AddListener(currentAction);
     }
 }
Exemple #2
0
 public void AddBlockDestroyedListener(UnityAction listener)
 {
     blockDestroyed.AddListener(listener);
 }
Exemple #3
0
 public void AddBlockDestroyedListener(UnityAction <int> listener)
 {
     blockDestroyedEvent.AddListener(listener);
 }