/// <summary> /// Performs an attack /// </summary> private void Attack() { if (Input.GetKeyDown(KeyCode.Mouse0)) { myWeapon.Attack(myWeapon.attackColliders[Random.Range(1, 2)]); } if (Input.GetKeyDown(KeyCode.Mouse1)) { myWeapon.Attack(myWeapon.attackColliders[0]); } }