void ScanForAbilityKeyDown() { for (int keyIndex = 0; keyIndex < abilities.GetNumberOfAbilities(); keyIndex++) { if (Input.GetKeyDown(keyIndex.ToString()) && !abilities.GetRequiresTarget(keyIndex)) { abilities.AttemptSpecialAbility(keyIndex); } } }
void ScanForAbilityKeyDown() { for (int keyIndex = 0; keyIndex < abilities.GetNumberOfAbilities(); keyIndex++) { if (Input.GetKeyDown(keyIndex.ToString()) && !abilities.GetRequiresTarget(keyIndex)) { abilities.AttemptSpecialAbility(keyIndex); } } }