Beispiel #1
0
 void ScanForAbilityKeyDown()
 {
     for (int keyIndex = 1; keyIndex <= abilities.GetNumbersOfAbilities(); keyIndex++)
     {
         if (Input.GetKeyDown(keyIndex.ToString()))
         {
             abilities.AttemptSpecialAbility(keyIndex);
         }
     }
 }