public void DoAttack(AttackHolder newAttack) //Called from the AttackHolder class when we press a button to attack { LetPlayerAttack(false); //Disable attacking until we complete the attack currentAttack = newAttack; //Store the current attack in a variable DiceRoll hitDice = new DiceRoll //We check to hit with a dice roll that consists of one D20 dice { amount = 1, dice = DiceType.D20 }; roller.DoDiceroll(hitDice, CheckIfAttackLanded); //We tell the diceroller to roll the dice we defined above, then pass the result to the CheckIfAttackLanded function }