Example #1
0
 public static void SetAnyListenerOnce(this InputAction action, Action <InputAction.CallbackContext> context, bool enable)
 {
     if (enable)
     {
         action.AddAnyListenerOnce(context);
     }
     else
     {
         action.RemoveAnyListener(context);
     }
 }