コード例 #1
0
 void ScanForAbilityKeyDown()
 {
     for (int key = 1; key < specialAbilities.getNumberOfAbilities(); key++)
     {
         if (Input.GetKeyDown(key.ToString()))
         {
             specialAbilities.AttemptSpecialAbility(key);
             currentAbilityIndex = key;
         }
     }
 }