public static void AddListnersToFreezer(UnityAction <int> listner) { freezerListners = listner; if (invoker != null) { invoker.AddListenerToFreezer(freezerListners); } }
public static void AddInvoker(PickUpBlock script) { invoker = script; if (freezerListners != null) { invoker.AddListenerToFreezer(freezerListners); } foreach (UnityAction <int, int> item in speedListeners) { invoker.AddListenerToSpeed(item); } }