public static void AddSpeedUpListener(UnityAction <int, float> speedupEventHandler) { speedUpEventListener = speedupEventHandler; if (speedUpEventInvoker != null) { speedUpEventInvoker.AddSpeedUpEventListener(speedUpEventListener); } }
public static void AddSpeedUpInvoker(PickupBlock invoker) { speedUpEventInvoker = invoker; if (speedUpEventListener != null) { speedUpEventInvoker.AddSpeedUpEventListener(speedUpEventListener); } }