Hi,
On mouse button click, I perform “Attack” method.
Within this method, I would like to check if the mouse button was pressed once again (user confirmation).
How is it achievable in this new Input System?
void OnAttack(InputAction.CallbackContext context)
{
if (context.performed)
{
Attack();
}
}
void Attack()
{
if(type1)
{
PrepareType1();
if(mouseclick) // confirm type1
{
ExecuteType1();
}
}
}