Example #1
0
 public static void AddHitListener(UnityAction <ScreenSide, int> handler)
 {
     HitListener = handler;
     if (HitInvoker != null)
     {
         HitInvoker.AddHitsEventListener(HitListener);
     }
 }
Example #2
0
 // Hits count
 public static void AddHitInvoker(Paddle script)
 {
     HitInvoker = script;
     if (HitListener != null)
     {
         HitInvoker.AddHitsEventListener(HitListener);
     }
 }