void Attacks() { if (attack1) { character.Attack1(transform.position, direction); } if (attack2) { character.Attack2(transform.position, direction); } }