Exemple #1
0
 void GetButtonInputs()
 {
     if (input.ArrowDown() && !charging)
     {
         hero.StartCharge();
         charging = true;
     }
     if (input.ArrowUp() && charging)
     {
         hero.EndCharge();
         charging = false;
     }
     if (input.DashDown())
     {
         hero.Dash();
     }
     if (input.DodgeDown())
     {
         hero.Dodge();
     }
     if (input.MeleeDown())
     {
         hero.MeleeAttack();
     }
 }