public static void AddFreezeListener(UnityAction <int> freezeEventHandler) { freezeEventListener = freezeEventHandler; if (freezeEventInvoker != null) { freezeEventInvoker.AddFreezeEventListener(freezeEventListener); } }
public static void AddFreezeInvoker(PickUpBlock invoker) { freezeEventInvoker = invoker; if (freezeEventListener != null) { freezeEventInvoker.AddFreezeEventListener(freezeEventListener); } }