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