public void Left(InputAction.CallbackContext context) { if (!context.performed) { return; } float delay = TM.CheckDelay(); Debug.Log("Pressed Left with a delay of " + delay + "s"); GM.HandleAction(delay, attackType.magic); }