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