public static void AddSpeedListener(UnityAction <float> handler) { speedListener = handler; if (speedInvoker != null) { speedInvoker.AddSpeedEffectListener(speedListener); } }
public static void addSpeedInvoker(PickupBlock invoker) { speedEffectInvoker.Add(invoker); foreach (UnityAction <float, float> lsnr in speedListener) { invoker.AddSpeedEffectListener(lsnr); } }
public static void AddSpeedInvoker(PickupBlock script) { speedInvoker = script; if (speedListener != null) { speedInvoker.AddSpeedEffectListener(speedListener); } }