public static void AddListenerBoxesDestroyed(UnityAction script) { listenerBoxesDestroyed = script; if (invokerBoxesDestroyed != null) { invokerBoxesDestroyed.AddNoArgumentListener(listenerBoxesDestroyed); } }
public static void AddInvokerBoxesDestroyed(Box script) { invokerBoxesDestroyed = script; if (listenerBoxesDestroyed != null) { invokerBoxesDestroyed.AddNoArgumentListener(listenerBoxesDestroyed); } }